Apache Reference: http_core, ErrorDocument
ErrorDocument
Set Alternative Response Document for HTTP Errors
Syntax: ErrorDocument http-code A
Example: ErrorDocument 302 /internal/302.html
Since: Apache 1.0
In the event of a problem or error, Apache can be configured to do one of four things: (1) output a simple, hard-coded error message, (2) output a dynamic customized message, (3) redirect to a local URL to handle the problem, or (4) redirect to an external URL to handle the problem. The first option is the default. The other three options are configured using the ErrorDocument directive, which is followed by the HTTP response code http-core and a text message or URL action. Messages in this context consist of quoted string for action. URLs for action can begin with a slash (``C>'') for local URLs or be fully qualified URLs that force an HTTP redirect.