Last updated: April 12, 2026
HTTP Status Codes Cheatsheet
Quick Answer
HTTP status codes are 3-digit numbers returned by servers. 1xx = informational, 2xx = success, 3xx = redirection, 4xx = client error, 5xx = server error. This cheatsheet covers the 30 most important codes.
1xx Informational
| Command | Description |
|---|---|
| 100 Continue | Server received request headers; client should send body |
| 101 Switching Protocols | Server is switching protocols (e.g., to WebSocket) |
2xx Success
| Command | Description |
|---|---|
| 200 OK | Request succeeded — standard success response |
| 201 Created | Request succeeded and a new resource was created |
| 202 Accepted | Request accepted for processing but not yet completed |
| 204 No Content | Request succeeded but no content to return |
| 206 Partial Content | Returning partial resource (range request) |
3xx Redirection
| Command | Description |
|---|---|
| 301 Moved Permanently | Resource permanently moved to a new URL (cached by browsers) |
| 302 Found | Resource temporarily at a different URL |
| 303 See Other | Redirect to another resource using GET (after POST) |
| 304 Not Modified | Resource has not changed — use cached version |
| 307 Temporary Redirect | Temporary redirect preserving the HTTP method |
| 308 Permanent Redirect | Permanent redirect preserving the HTTP method |
4xx Client Error
| Command | Description |
|---|---|
| 400 Bad Request | Server cannot process the request due to client error (malformed syntax) |
| 401 Unauthorized | Authentication required — no valid credentials provided |
| 403 Forbidden | Server refuses to authorize the request (authenticated but not allowed) |
| 404 Not Found | Requested resource does not exist |
| 405 Method Not Allowed | HTTP method not supported for this endpoint |
| 408 Request Timeout | Server timed out waiting for the request |
| 409 Conflict | Request conflicts with the current state of the resource |
| 413 Payload Too Large | Request body exceeds server limits |
| 415 Unsupported Media Type | Content-Type not supported by the endpoint |
| 422 Unprocessable Entity | Request is well-formed but semantically invalid (validation error) |
| 429 Too Many Requests | Rate limit exceeded — slow down |
5xx Server Error
| Command | Description |
|---|---|
| 500 Internal Server Error | Generic server error — something went wrong |
| 501 Not Implemented | Server does not support the requested functionality |
| 502 Bad Gateway | Server got an invalid response from an upstream server |
| 503 Service Unavailable | Server is temporarily unavailable (maintenance or overload) |
| 504 Gateway Timeout | Upstream server did not respond in time |
| 511 Network Authentication Required | Client needs to authenticate to access the network (captive portal) |
Frequently Asked Questions
More Cheatsheets
Git Commands Cheatsheet
This cheatsheet covers the 40 most essential Git commands grouped by workflow: setup, staging, branc...
Docker Commands Cheatsheet
This cheatsheet covers 35 essential Docker commands for managing containers, images, volumes, and ne...
Linux Commands Cheatsheet
This cheatsheet covers 40 essential Linux/Unix commands for daily development: file navigation, text...
Regex Syntax Cheatsheet
This cheatsheet covers essential regex syntax: character classes, quantifiers, anchors, groups, and ...