Http Status Codes Cheatsheet




Http Status Codes

Http is what protocol ussed by the modern internet, there are multiple codes returned on the basis of what comes an outcome to a http request

Do note that the code not mentioned in the cheatsheet are not officially assigned and upto the server manager to assign for their convinence

Http classes

ClassInfo
1xxinformational response
2xxsuccessful
3xxredirection
4xxclient error
5xxserver error

1xx informational response

Status CodeMeaning
100Continue
101Switching Protocols

Success Responses

Status CodeMeaning
200OK
201Created
202Accepted
203Non-Authoritive Information
204No Content
205Reset Content
206Partial Content
226IM Used

Redirection Responses

Status CodeMeaning
300Multiple Choices
301Moved Permanently
302Found
303See Other
304Not Modified
305Use Proxy
306Switch Proxy
307Temporary Redirect
308Permanent Redirect

Client Error Responses

Status CodeMeaning
400Bad Request
401Unauthorized
402Payment Required
403Forbidden
404Not Found
405Method Not Allowed
406Not Acceptable
407Proxy Authentication Required
408Request Timeout
409Conflict
410Gone
411Length Required
412Precondition Failed
413Payload Too Large
414URI Too Long
415Unsupported Media Type
416Range Not Satisfiable
417Expectation Failed
418I’m a teapot
421Misdirected Request
426Upgrade Required
428Precondition Required
429Too Many Requests
431Request Header Fields Too Large
451Unavailable For Legal Reasons

Server Error Responses

Status CodeMeaning
500Internal Server Error
501Not Implemented
502Bad Gateway
503Service Unavailable
504Gateway Timeout
505HTTP Version Not Supported
506Variant Also Negotiates
510Not Extended
511Network Authentication Required