When pound
returns an error status, it uses built-in
error-specific description code and status page template. These
values can be customized using the ErrorFile
statement.
Read HTML page for HTTP status code code from file filename.
The code argument is a three-digit HTTP response status, and filename is the name of a file which supplies text of the error page to be returned. The file is read once, at program startup.
For compatibility with pound
versions up to 4.11, the
following statement is also recognized:
Errnnn "filename"
where nnn is a three-digit HTTP status code. This statement is entirely equivalent to
ErrorFile nnn "filename"
Pound
produces only a subset of all possible status codes,
so not all nnn codes are allowed. The discussion below lists
available HTTP codes, along with the error description and default
error page text.
‘Bad Request’
Your browser (or proxy) sent a request that this server could not understand.
‘Unauthorized’
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn’t understand how to supply the credentials required.
‘Forbidden’
You don’t have permission to access this resource. It is either read-protected or not readable by the server.
‘Not Found’
The requested URL was not found on this server.
‘Method Not Allowed’
The request method is not supported for the requested resource.
‘Payload Too Large’
The request content is larger than the proxy server is able to process.
‘URI Too Long’
The length of the requested URL exceeds the capacity limit for this server.
‘Internal Server Error’
The server encountered an internal error and was unable to complete your request.
‘Not Implemented’
The server does not support the action requested.
‘Service Unavailable’
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.