Compartir a través de


HttpError (WMI)

This class corresponds to the HttpErrors property in the metabase which specifies the custom error String sent to clients in response to HTTP 1.1 errors.

IIsStructuredDataClass (WMI)

Methods

The HttpError object has no methods.

Properties

The HttpError object defines the following properties, in addition to those inherited from IIsStructuredDataClass (WMI).

Property

Data type

Description

HandlerLocation

String

The HandlerLocation property specifies the location of the error page. If HandlerType is a file, then HandlerLocation must be the absolute or relative path to the file. If HandlerType is a URL, then HandlerLocation must be the absolute or relative URL for the Web page.

HandlerType

String

The HandlerType property specifies whether the error page is a "FILE" or a "URL".

HttpErrorCode

String

The HttpErrorCode property specifies the HTTP error code, for example, "401". Error 401 is a server or DNS error.

HttpErrorSubcode

String

The HttpErrorSubcode property specifies the HTTP error subcode, for example, "5". Error 401-5 is a failure to authorize by an ISAPI or CGI application.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also