List of HTTP status codes with several examples for each category:
1xx – Informational (Request received, continuing process):
- 100 Continue
- 101 Switching Protocols
- 102 Processing
- 103 Early Hints
- 100 Continue: The server has received the initial part of the request and will continue to process it.
- 101 Switching Protocols: The server is switching to a different protocol.
- 102 Processing: The request is being processed and may take a while to complete.
- 103 Early Hints: Used to return some response headers before the final response.
2xx – Success (The action was successfully received, understood, and accepted):
- 200 OK
- 201 Created
- 202 Accepted
- 203 Non-Authoritative Information
- 204 No Content
- 205 Reset Content
- 200 OK: The request was successful, and the server has returned the requested data.
- 201 Created: The request resulted in the creation of a new resource.
- 202 Accepted: The request has been accepted for processing but not yet completed.
- 204 No Content: The request was successful, but there is no data to return.
- 206 Partial Content: The server is returning only a portion of the requested resource.
- 207 Multi-Status: A status for multiple independent operations in a single request.
3xx – Redirection (Further action needs to be taken to complete the request):
- 300 Multiple Choices
- 301 Moved Permanently
- 302 Found
- 303 See Other
- 304 Not Modified
- 305 Use Proxy
- 306 Switch Proxy (Unused)
- 307 Temporary Redirect
- 308 Permanent Redirect
- 300 Multiple Choices: The requested resource corresponds to multiple possibilities.
- 301 Moved Permanently: The requested resource has been permanently moved to a different URL.
- 302 Found: The requested resource is temporarily located at a different URL.
- 304 Not Modified: The client’s cached copy is up to date, and there’s no need to transfer the same data again.
- 307 Temporary Redirect: The request should be repeated with another URL.
4xx – Client Errors (The request contains bad syntax or cannot be fulfilled by the server):
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required (Reserved for future use)
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 400 Bad Request: The server cannot process the request due to malformed syntax or invalid parameters in the client’s request.
- 401 Unauthorized: Authentication is required, and the provided credentials are missing or invalid.
- 403 Forbidden: The client’s request is understood, but it’s refused due to lack of permission.
- 404 Not Found: The requested resource could not be found on the server.
- 405 Method Not Allowed: The requested HTTP method is not supported for the target resource.
- 406 Not Acceptable: The server cannot produce a response matching the list of acceptable values defined in the request’s headers.
- 409 Conflict: Indicates a conflict between the request and the current state of the target resource.
- 410 Gone: The requested resource is no longer available, and there is no forwarding address.
- 413 Request Entity Too Large: The request entity is larger than the server is willing to process.
- 429 Too Many Requests: The user has sent too many requests in a given amount of time (“rate limiting”).
5xx – Server Errors (The server failed to fulfill a valid request):
- 500 Internal Server Error
- 501 Not Implemented
- 502 Bad Gateway
- 503 Service Unavailable
- 504 Gateway Timeout
- 505 HTTP Version Not Supported
- 506 Variant Also Negotiates
- 507 Insufficient Storage
- 508 Loop Detected
- 510 Not Extended
- 500 Internal Server Error: The server has encountered an unexpected condition that prevented it from fulfilling the request.
- 501 Not Implemented: The server does not support the functionality required to fulfill the request.
- 502 Bad Gateway: The server, acting as a gateway or proxy, received an invalid response from an upstream server.
- 503 Service Unavailable: The server is temporarily unable to handle the request due to overloading or maintenance.
- 504 Gateway Timeout: The server, acting as a gateway or proxy, did not receive a timely response from the upstream server.
- 505 HTTP Version Not Supported: The server does not support the HTTP protocol version used in the request.
- 507 Insufficient Storage: The server is unable to store the representation needed to complete the request.
- 508 Loop Detected: The server detected an infinite loop while processing the request.
- 510 Not Extended: Further extensions to the request are required for the server to fulfill it.
- 511 Network Authentication Required: The client needs to authenticate to access the network.