Configures an error page to be shown when an HTTP error occurs.

Arguments

code
The HTTP status code to catch.
url
The url of the error page to execute.

Remarks

If an error with the given HTTP status code occurs, then the page specified in url will be executed.

Examples

<error-handler code="500" url="/oops.aspx" />
<error-handler code="404" url="/not-found.html" />

See Also