[thelist] Apache: Fun with error docs + tip

Peter Lowe pgl at instinct.org
Mon Aug 4 18:43:48 CDT 2003


On Aug 05, Stuart Young wrote:
> lists at frankmarion.com 02/08/2003 14:34:41 >
> 
> I'm gapping out, and for some reason, the idea of re-doing my error pages 
> for my site seems to be fun right now. So I'm customising my 404 pages, as 
> well as my 500. Can someone tell me what the most frequently encountered 
> errors might be 
> ---------------------------
> 
> Look in your server logs/error logs to see which ones your site gets, and which ones are the most common for your site.
> 
> See this excellent website:
> 404 research labs 
> http://www.plinko.net/404/ 
> 
> Finally, the full list of response codes:
> 
> Success codes:	
> 200 = OK
> 201 = Created
> 202 = Accepted
> 203 = Partial Information
> 204 = No Response
> 206 = Partial Content	
> 300 = Redirected
> 301 = Moved Permanently
> 302 = Found Elsewhere
> 303 = New Method
> 304 = Not Modified
> 
> Failed codes:	
> 400 = Bad Request
> 401 = Unauthorized
> 402 = Payment Required
> 403 = Forbidden	
> 404 = Not Found	
> 405 = Method not allowed
> 408 = Request timeout
> 500 = Internal Error
> 501 = Not Implemented
> 502 = Overloaded
> 503 = Gateway Timeout 
> 
> cheers

You only asked about "the most frequently encounteered" status codes
before - which was understandable, since a lot of them are hardly ever
used (if at all?). If you're looking for a full list though, the list
above is definitely incomplete. This list is from Apache's
src/main/http_protocol.c -

#endif
{
    "100 Continue",
    "101 Switching Protocols",
    "102 Processing",
#define LEVEL_200  3
    "200 OK",
    "201 Created",
    "202 Accepted",
    "203 Non-Authoritative Information",
    "204 No Content",
    "205 Reset Content",
    "206 Partial Content",
    "207 Multi-Status",
#define LEVEL_300 11
    "300 Multiple Choices",
    "301 Moved Permanently",
    "302 Found",
    "303 See Other",
    "304 Not Modified",
    "305 Use Proxy",
    "306 unused",
    "307 Temporary Redirect",
#define LEVEL_400 19
    "400 Bad Request",
    "401 Authorization Required",
    "402 Payment Required",
    "403 Forbidden",
    "404 Not Found",
    "405 Method Not Allowed",
    "406 Not Acceptable",
    "407 Proxy Authentication Required",
    "408 Request Time-out",
    "409 Conflict",
    "410 Gone",
    "411 Length Required",
    "412 Precondition Failed",
    "413 Request Entity Too Large",
    "414 Request-URI Too Large",
    "415 Unsupported Media Type",
    "416 Requested Range Not Satisfiable",
    "417 Expectation Failed",
    "418 unused",
    "419 unused",
    "420 unused",
    "421 unused",
    "422 Unprocessable Entity",
    "423 Locked",
    "424 Failed Dependency",
#define LEVEL_500 44
    "500 Internal Server Error",
    "501 Method Not Implemented",
    "502 Bad Gateway",
    "503 Service Temporarily Unavailable",
    "504 Gateway Time-out",
    "505 HTTP Version Not Supported",
    "506 Variant Also Negotiates",
    "507 Insufficient Storage",
    "508 unused",
    "509 unused",
    "510 Not Extended"
};

There may be more defined as part of the HTTP RFC though.

cheers,

Peter

-- 
The Czech Republic: Home of the world's finest beer.
Litres drunk by Czechs so far this year: 970,980,193.47

 - http://prague.tv/toys/beer/


More information about the thelist mailing list