HTTP Status Codes
HTTP Status Codes (Cheatsheet)
Resume
- 1. Informational responses (
100-199) - 2. Successful responses (
200-299) - 3. Redirection messages (
300-399) - 4. Client error responses (
400-499) - 5. Server error responses (
500-599)
Check
curl -o /dev/null -s -w "%{http_code}\n" "https://domain.tld"
200
Status Code Groups
1XX - Informational Responses
100 Continue– The server has received the request headers and the client should proceed to send the request body.101 Switching Protocols- The requester has asked the server to switch protocols.102 Processing- The server has received and is processing the request, but no response is available yet.
2XX — Success Responses
200 OK– The request was successful.201 Created– The request was successful, and a new resource was created.202 Accepted– The request has been accepted for processing, but not completed.203 Non-Authoritative Information– The returned metadata is not from the origin server.204 No Content– The request was successful, but there is no content to send.205 Reset Content– The client should reset the document view.206 Partial Content– The server is delivering only part of the resource.
3XX — Redirection Messages
300 Multiple Choices– Multiple options for the resource are available.301 Moved Permanently– The resource has been permanently moved to a new URL.302 Found– The resource is temporarily located at a different URL.303 See Other– The response can be found at another URL using GET.304 Not Modified– The resource has not been modified since the last request.307 Temporary Redirect– The request should be repeated with another URL (same method).308 Permanent Redirect– The request should be repeated with another URL (permanent).
4XX — Client Error Responses
400 Bad Request– The server cannot process the request due to client error.401 Unauthorized– Authentication is required.402 Payment Required– Reserved for future use.403 Forbidden– The client does not have access rights.404 Not Found– The resource could not be found.405 Method Not Allowed– The request method is not supported.406 Not Acceptable– The server cannot produce a response matching the request.407 Proxy Authentication Required– Authentication is required by a proxy.408 Request Timeout– The server timed out waiting for the request.409 Conflict– The request conflicts with the current state of the server.410 Gone– The resource is permanently deleted.411 Length Required– Content-Length header is required.412 Precondition Failed– Preconditions given in headers failed.413 Payload Too Large– The request entity is too large.414 URI Too Long– The URI is too long.415 Unsupported Media Type– The media format is not supported.416 Range Not Satisfiable– The requested range cannot be fulfilled.417 Expectation Failed– The server cannot meet expectations.429 Too Many Requests– The user has sent too many requests.
5XX — Server Error Responses
500 Internal Server Error– Generic server error.501 Not Implemented– The server does not support the functionality required.502 Bad Gateway– Invalid response from upstream server.503 Service Unavailable– The server is currently unavailable.504 Gateway Timeout– The upstream server failed to respond in time.505 HTTP Version Not Supported– The HTTP version is not supported.