You can specify a custom error response that sends a detailed message to clients when they encounter errors from your server. You can specify a file to send or a CGI program to run.
Instead of sending back the default file, you might want to send a custom error response. For example, if a client repeatedly tries to connect to a part of your server protected by access control, you might return an error file with information on obtaining an account.
You can customize the response to the following kinds of errors:
Before you can set up the response, you need to write the HTML file to send or create the CGI program to run.
From the Web Manager home page, click Enterprise Web Server servername > Server Preferences > Error Responses.
From the Editing drop-down list, select the server resource you want to configure.
To choose a specific part of your server, click Browse.
To browse files and directories on your server, click Options.
To return to the Custom Error Responses form, click Back.
To enter the wildcard pattern to edit, click Wildcard.
Select the error response you want to customize.
In the appropriate field, enter the absolute pathname to the file or CGI script that you want to return for that error code.
Check the CGI box if the file is a CGI program that you want to run.
Repeat this process for each error response you want to customize.
Click OK.
To remove a customization, return to the form and delete the filename from the field next to the error code.