Custom Error Messages

When a user attempts to connect to a Web site and an HTTP error occurs, a generic message is sent back to the client browser with a brief description of what happened during the attempt to establish a connection. For example, if a user attempts to connect to a Web site that has reached its maximum connection capacity, an HTTP error will be returned in the form of an HTML page that contains the statement "Too many users."

You can use the Custom Errors property sheet in HC to customize these generic HTTP errors.

Adding a Custom Error Message

Custom error messages can be in the form of a mapping to a file or to a URL. Either of these can be implemented by using the Custom Errors property sheet in the HC IIS Manager.

To customize an error message by mapping to a file:

  1. Create a file that contains your custom error message and place it in a directory.

  2. Login into Control Panel as Host Admin or Web admin, Click Domains, select the site for which you want to customize the error messages, In the displayed IIS Management Console, click on Properties button at the top of the page.

  3. In the Site Properties sheet, click on Error Messages button present at the bottom, It will take you to Custom Error sheet.

  4. Select the HTTP error that you would like to change.

  5. Click the Edit Properties button.

  6. Select File from the Message Type box.

  7. Type the path and file name which points to your customized error message, or use the Browse button to locate the file on your computer's hard disk.

  8. Click OK.

To customize an error message by mapping to a URL:

  1. Create a file that contains your custom error message and place it in a directory.

  2. Login into Control Panel as Host Admin or Web admin, Click Domains, select the site for which you want to customize the error messages, In the displayed IIS Management Console sheet , click on Properties button at the top of the page.

  3. In the Site Properties sheet, click on Error Messages button present at the bottom, It will take you to Custom Error sheet.

  4. Select the HTTP error that you would like to change.

  5. Click the Edit Properties button.

  6. Select URL from the Message Type box.

  7. Type the URL which points to your customized error message by entering the path to the URL beginning with the virtual directory name.

  8. Click OK.

403, 405, 410 - must be greater than 256 bytes

400, 404, 406, 408, 409, 500, 500.12, 500.13, 500.15, 501, 505 - must be greater than 512 bytes