Home > error messages > internet explorer friendly error messages

Internet Explorer Friendly Error Messages

Contents

'14 Friendly HTTP Error Pages ★★★★★★★★★★★★★★★ EricLaw [ex-MSFT]August 18, 20100 Share 0 0 Internet Explorer 5 and later will show friendly http error messages chrome show a “Friendly” HTTP Error page if the server returns certain HTTP

Show Friendly Http Error Messages Iis

Error status codes with a short message body. The intent is to replace a terse server message like 500 - internal server error. this one: …with a page which may be slightly more helpful to the average user, like this one: Unfortunately, IE's logic isn't smart enough to detect that, say, the response was a tiny HTML page with a META Refresh pointed at a different page, meaning that the META Refresh won't work until you pad the HTML response with enough text to be deemed "non-terse." A common question from web developers is: What makes IE decide to show a friendly error page? The answer is that the server’s response must meet two criteria: The HTTP Status code must be [400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505] The HTTP Response body’s byte length must be shorter than a threshold value If the server’s response meets both criteria, then IE will show its own Friendly HTTP Error page instead of the server’s terse response. The byte length thresholds are stored in the registry in HKEY_LOCAL_MACHINE under the subkey \SOFTWARE\Microsoft\Internet Explorer\Main\ErrorThresholds. The default threshold is 256 bytes for the response codes [403, 405, 410] and 512 bytes for response codes [400, 404, 406, 408, 409, 500, 501, 505]. If the registry entry is missing for one of the status codes, its threshold defaults to 512 bytes. I wrote a simple script which allows you to test IE’s Friendly HTTP Error pages using Meddler. The next most common question is: How do I prevent IE from showing the friendly error page? If a user wants to prevent display of all Friendly HTTP Error pages, they can untick an option in the Internet Control Panel's Ad

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How do I suppress “friendly error messages” in Internet Explorer? up vote 19 https://blogs.msdn.microsoft.com/ieinternals/2010/08/18/friendly-http-error-pages/ down vote favorite 5 I want to display a custom error page: 400 Bad Request

400 Bad Request

The grob must be in the frobber. Unfortunately, Internet Explorer ignores the response sent by the HTTP server; hiding my page and showing their own: How can I convince Internet Explorer to show the page the user was sent? internet-explorer share|improve this question edited Aug 13 '13 http://stackoverflow.com/questions/11544048/how-do-i-suppress-friendly-error-messages-in-internet-explorer at 17:26 TRiG 5,48623170 asked Jul 18 '12 at 14:44 Ian Boyd 85.6k150529858 add a comment| 1 Answer 1 active oldest votes up vote 28 down vote accepted The solution is PADDING. Microsoft notes in knowledge base article KB294807: HOW TO: Turn Off the Internet Explorer 5.x and 6.x "Show Friendly HTTP Error Messages" Feature on the Server Side ...these "friendly" error messages are only displayed if the response that is sent to the client is less than or equal to a specified threshold. For example, to see the exact text of an HTTP 500 response, the content length must be greater than 512 bytes. Implement this padding. To do this, use the VBScript String function to return a string of the same character, which is one more than the ErrorThreshold that Internet Explorer 5.x uses to display the friendly error message. For example, add the following line immediately before the tag of 500-100.asp: <% Response.Write String(513, "_") %> Make it bigger So i bulk up response page to: 400 Bad Request

400 Bad Request

The grob must be in the frobber.