MD_CUSTOM_ERROR

This identifier contains a list of custom HTTP error handlers. When a client generates an HTTP error, the server checks to see if the error code and subcode match an entry in this list. If there is a match, the URL indicated in this list is given to the client. Otherwise, the server's default error handlers are used.

Each string in the list specifies the HTTP error code and subcode, indicates whether the handler will be a URL or a file, and specifies which URL or file the client will be sent. Each string can be in one of two formats. To send a URL to the client, use HTTPErrorCode, HTTPErrorSubcode, URL, HanderlerURL. To send a file, use HTTPErrorCode, HTTPErrorSubcode, FILE, Filename.

Attributes

Data type MULTI_SZ
Default inheritance Inheritable
User type IIS_MD_UT_SERVER

Values

Default Value
Empty list

Metabase Keys

This identifier is available at the following metabase keys:

Metabase Path Key Type
/LM/W3SVC IIsWebService
/LM/W3SVC/n IIsWebServer
/LM/W3SVC/n/ROOT IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir/WebDirectory IIsWebDirectory
/LM/W3SVC/n/ROOT/WebVirtualDir/WebDirectory/WebFile IIsWebFile

See Also

HttpErrors, MD_CUSTOM_ERROR_DESC