HTTP Status Codes Cheat Sheet

HTTP status codes are three-digit numbers that are returned by a server in response to a client’s request. These codes provide information about the status of the requested resource, such as whether it was successfully retrieved or if there was an error. Understanding HTTP status codes is essential for web developers and website owners, as they can help diagnose and troubleshoot issues with a website.

There are five classes of HTTP status codes, each with its own range of codes. The first digit of the status code indicates the class of the response, while the remaining two digits provide more specific information about the status.

The most common HTTP status codes are the 200 series, which indicate that the request was successful. For example, a 200 OK status code means that the server successfully processed the request and returned the requested resource.

The 300 series codes indicate that the requested resource has moved or been redirected. For example, a 301 Moved Permanently status code means that the requested resource has been permanently moved to a new URL.

The 400 series codes indicate that there was an error with the client’s request. For example, a 404 Not Found status code means that the requested resource could not be found on the server.

The 500 series codes indicate that there was an error with the server. For example, a 500 Internal Server Error status code means that there was an error with the server that prevented it from fulfilling the request.

In conclusion, HTTP status codes are an essential part of the web development process. They provide valuable information about the status of a requested resource and can help diagnose and troubleshoot issues with a website. By understanding HTTP status codes, web developers and website owners can ensure that their websites are functioning properly and providing a positive user experience.

Cheat Sheet

Status CodeDescription
100Continue
101Switching Protocols
102Processing
200OK
201Created
202Accepted
203Non-Authoritative Information
204No Content
205Reset Content
206Partial Content
207Multi-Status
208Already Reported
226IM Used
300Multiple Choices
301Moved Permanently
302Found
303See Other
304Not Modified
305Use Proxy
306Switch Proxy
307Temporary Redirect
308Permanent Redirect
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
422Unprocessable Entity
423Locked
424Failed Dependency
426Upgrade Required
428Precondition Required
429Too Many Requests
431Request Header Fields Too Large
451Unavailable For Legal Reasons
500Internal Server Error
501Not Implemented
502Bad Gateway
503Service Unavailable
504Gateway Timeout
505HTTP Version Not Supported
506Variant Also Negotiates
507Insufficient Storage
508Loop Detected
510Not Extended
511Network Authentication Required
Informational Status Codes
Status CodeDescription
100Continue
101Switching Protocols
102Processing
Successful Status Codes
Status CodeDescription
200OK
201Created
202Accepted
203Non-Authoritative Information
204No Content
205Reset Content
206Partial Content
207Multi-Status
208Already Reported
226IM Used
Redirection Status Codes
Status CodeDescription
300Multiple Choices
301Moved Permanently
302Found
303See Other
304Not Modified
305Use Proxy
306Switch Proxy
307Temporary Redirect
308Permanent Redirect
Client Error Status Codes
Status CodeDescription
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
422Unprocessable Entity
423Locked
424Failed Dependency
426Upgrade Required
428Precondition Required
429Too Many Requests
431Request Header Fields Too Large
451Unavailable For Legal Reasons
Server Error Status Codes
Status CodeDescription
500Internal Server Error
501Not Implemented
502Bad Gateway
503Service Unavailable
504Gateway Timeout
505HTTP Version Not Supported
506Variant Also Negotiates
507Insufficient Storage
508Loop Detected
510Not Extended
511Network Authentication Required