Configuring Custom Error Pages

Configuring Custom Error Pages

“Custom Errors” tab of web site properties allows you to customize HTTP error messages that are sent to clients when web server errors occur. It is possible to use generic default HTTP 1.1 errors, detailed custom error files that IIS provides, or create your own custom error files.

To add a new custom error click “Add Custom Error” button. Specify error code and optional sub-code, select handler type and then type URL or path of custom error page. Error code is a number between 200 and 900; the most popular ones are: 404 – page not found, 401 – unauthorized and 403 – forbidden. To the full list of HTTP error codes type “http error codes” in search engine.

If you select “File” for Handler type you should provide a path to error page file relative to web site root. For example, if 404.htm error page is located in the root of web site type “\404.htm” in Error content field. If you select “Redirect” you have to provide absolute URL to destination page, for example Finally, if you select “Execute URL” then you have to provide URL of custom error page relative to the web site root, for example “/error.aspx”.

After you’ve added or modified custom errors click “Update” button to update web site settings.

Add Feedback