Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

Add or Edit Custom Error Page Dialog Box

Applies To: Windows Server 2008 R2

Use the Add Custom Error Page and Edit Custom Error Page dialog boxes to configure IIS to return a custom error message whenever a specific HTTP error occurs.

UI Element List

 

Element Name Description

Status code

Type the HTTP status code (and optional sub-status code) to which the custom error page applies.

Insert content from static file into the error response

Select this option when the error page should include static content, such as from an HTML file. In the corresponding File path box, type or browse for the physical path of the static file.

CautionCaution
If the file that you configure in the File path box is not static content, such as a .aspx file, the code will be displayed instead of running when the response is returned.

Browse

Opens the file menu from which you can browse for the static file.

Try to return the error file in the client language

Select this option when the error should be returned in the client language (if possible). When you select this check box, click the Set button to configure the path.

Set

Opens the Set Localized Custom Error Path dialog box from which you can configure the path of localized error files.

noteNote
This button is enabled only when you select Try to return the error file in the client language.

Execute a URL on this site

Select this option when the error page should include dynamic content, such as from an ASP file. In the corresponding URL (relative to site root) box, type the relative path to the custom error.

Respond with a 302 redirect

Select this option when you want the client to be redirected to a different URL. In the corresponding Absolute URL box, type the full URL to which the client is redirected.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.