Here’s a list of common HTTP status codes along with their descriptions, grouped by categories:
- 100 Continue: The initial part of a request has been received, and the client should continue with the request.
- 101 Switching Protocols: The server agrees to switch protocols as requested by the client.
2xx: Success
- 200 OK: The request was successful, and the server returned the requested data.
- 201 Created: The request was successful, and a new resource was created.
- 202 Accepted: The request has been accepted for processing, but the processing is not complete.
- 204 No Content: The server successfully processed the request, but there is no content to send in the response.
3xx: Redirection
- 301 Moved Permanently: The resource has been moved permanently to a new URL.
- 302 Found (Temporary Redirect): The resource has been temporarily moved to a different URL.
- 304 Not Modified: The resource has not been modified since the last request (cache-related).
4xx: Client Errors
- 400 Bad Request: The request was malformed or contains invalid parameters.
- 401 Unauthorized: Authentication is required but has either failed or not been provided.
- 403 Forbidden: The server understood the request but refuses to authorize it.
- 404 Not Found: The requested resource could not be found.
- 405 Method Not Allowed: The HTTP method is not allowed for the requested resource.
- 409 Conflict: The request could not be processed because of a conflict in the current state of the resource.
- 415 Unsupported Media Type: The server cannot process the request's media format.
- 429 Too Many Requests: The user has sent too many requests in a given amount of time (rate-limiting).
5xx: Server Errors
- 500 Internal Server Error: The server 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, while acting as a gateway or proxy, received an invalid response from the upstream server.
- 503 Service Unavailable: The server is currently unable to handle the request due to temporary overload or maintenance.
- 504 Gateway Timeout: The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server.
These are some of the most commonly used HTTP status codes. Each indicates a specific type of response from the server based on the outcome of the request.