ErrorDocument type filename
Where type is one of:
And filename is a
CGI script or text/html file with full path from document root.  CGI scripts launched via
these errors have 3 new environment variables, REDIRECT_REQUEST, 
REDIRECT_URL and REDIRECT_STATUS.  They also take as 
input the error reason of the form err_string=error_reason.  For
an example script, see an example.
ErrorDocument 403 /cgi-bin/notallowed.cgi
ErrorDocument 404 /cgi-bin/nph-error.pl
ErrorDocument 500 /serverError.html
ErrorDocument 501 /error/notImplemented.html
Return to Resource Configuration File Overview