Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
Description of Hypertext Transport Protocol Error Messages
Article ID: 218155 - View products that this article applies to.
This article was previously published under Q218155
This article describes the use of friendly Hypertext Transport Protocol (HTTP)-status error messages.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/322756/ )How to back up and restore the registry in Windows
In Microsoft Internet Explorer 4, when the Wininet.dll file cannot resolve a request, it displays an embedded Hypertext Markup Language (HTML) error message and a non-descriptive definition (for example, "Navigation Canceled" or "Unable to retrieve Webpage in Offline mode".) These error messages are a resource (res:) of the Shdocvw.dll file. A resource is HTML code that a program uses for display purposes that is embedded in a dynamic link library (DLL) file. In Internet Explorer 5 or later, these error messages are stored as a resource of the Shdoclc.dll file. When the error message is received it is replaced with a corresponding HTML template, which can contain any of the following types of information:
Internet Explorer 5 and later provides a replacement for the HTML template for the following friendly error messages:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\ ErrorThresholds
400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505
There is a name value pair (for example, "404", 128) for each of the errors. The first value is the error code. The second value is the byte size value used by Internet Explorer 5 or later to detect when it should replace error messages with its own. Therefore, when the Internet Explorer 5 version of the Wininet.dll file obtains an HTTP error message, the Wininet.dll file determines if the HTML content attached to the HTTP error is a well designed Web page. This is based on the size of the page. The threshold value in the registry is evaluated for each error. If the Web page is small enough, it gets rejected, and the friendly HTTP-status Web page is displayed.
The HKEY_LOCAL_MACHINE key stores the computer's default values. The same key and value can be set in the HKEY_CURRENT_USER key to override the HKEY_LOCAL_MACHINE values on a per-user basis.
To disable friendly HTTP-status error messages, follow these steps:
Article ID: 218155 - Last Review: January 24, 2007 - Revision: 3.3