Partager via


Configuring HTTP Error Responses in IIS 7

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Custom error messages let you provide a friendly or a more informative response by serving a file, executing a resource, or redirecting to a URL, when visitors to your site cannot access the content they requested.

By default, IIS serves error messages that are defined in files stored in the systemroot\Help\IisHelp\Common folder. You can create a custom error message for users and configure IIS to return this page whenever it encounters a specific HTTP error on your site.

Note

You cannot customize the following HTTP error messages: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505.

Prerequisites

For information about the levels at which you can perform these procedures, and the modules, handlers, and permissions that are required for these procedures, see HTTP Error Responses Feature Requirements (IIS 7).

Procedures

This task includes the following procedures:

View a List of HTTP Error Responses (IIS 7)

Create a Custom HTTP Error Response (IIS 7)

Change the Status Code for an HTTP Error Response (IIS 7)

Edit a Custom HTTP Error Response (IIS 7)

Remove a Custom HTTP Error Response (IIS 7)