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: