faqts : Computers : Internet : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 20 people (85%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

Where do I find a list of error codes? I'v got some funny ones in the logfile.

Nov 15th, 2001 17:59
Anthony Boyd, Simon Riget,


The error log doesn't actually return codes as far as I know, usually 
it just lists "error" (and sometimes "warn").  But in the access log, 
there are status codes that indicate abnormalities.  Here's a list:
100 Continue sending requests
101 Switching protocols
200 OK  (you should get lots of this)
201 Created
202 Accepted  (the server is saying "got it, but I don't want to reply")
203 Non-Authoritative
204 No Content  (cool, use it to get a request but not change the page)
205 Reset Form
206 Partial Content  (for grabbing bits of a file)
300 Multiple URLs to return, choose one
301 Moved Permanently
302 Moved Temporarily  (old, see 307)
303 See Other  (like a redirect)
304 Not Modified
305 Use Proxy
307 Moved Temporarily  (new)
400 Bad Request
401 Unauthorized  (usually how pay sites keep you out)
402 Payment Require  (I wish browsers implemented this!)
403 Forbidden
404 File Not Found
405 Method Not Allowed
406 Not Acceptable  (browser asks for English, all server has is French)
407 Proxy Auth Required
408 Request Timeout
409 Conflict
410 Gone  (basically a 404, but hinting that the file did exist once)
411 Length Required
412 Precondition Failed  (a lot like 406)
413 Request Too Large
414 URL Too Long
415 Unsupported
416 Request Range Not OK  (see 206)
417 Expectation Failed
500 Server Error  (CGI crashed)
501 Not Implemented  (the server was asked to do something it cannot do)
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout  (like 408)
505 HTTP Version Not Supported