HTTP Status Code Reference
Search 31 common status codes. 401 vs 403 and 502 vs 503 included.
| Code | Name |
|---|---|
| 100 | Continue |
| 101 | Switching Protocols |
| 102 | Processing |
| 200 | OK |
| 201 | Created |
| 202 | Accepted |
| 204 | No Content |
| 206 | Partial Content |
| 301 | Moved Permanently |
| 302 | Found |
| 303 | See Other |
| 304 | Not Modified |
| 307 | Temporary Redirect |
| 308 | Permanent Redirect |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 405 | Method Not Allowed |
| 408 | Request Timeout |
| 409 | Conflict |
| 410 | Gone |
| 412 | Precondition Failed |
| 415 | Unsupported Media Type |
| 422 | Unprocessable Entity |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
| 501 | Not Implemented |
| 502 | Bad Gateway |
| 503 | Service Unavailable |
| 504 | Gateway Timeout |
Easy to mix up
401 vs 403: 401 means not authenticated (missing or bad credentials). 403 means authenticated but not allowed.
502 vs 503: 502 means a proxy got a bad response from upstream. 503 means the origin itself is unavailable or overloaded.
Related Tools
Analyze HTTP headers for security issues, caching behavior, and CORS configuration with fix snippets.
Build and analyze Content-Security-Policy headers visually. Generate directives, detect security issues.
Preview how your page looks on Google, Facebook, Twitter/X, and LinkedIn.
HTTP Status Code Reference
HTTP status codes tell a client whether a request succeeded, redirected, or failed. This reference lists the common codes with a short explanation of when to use them and how clients typically handle them.
Search by number or phrase. The long-tail questions — 401 vs 403, 502 vs 503 — are called out because they are easy to mix up when you are writing APIs or reading production logs. Pair with the header analyzer when you are debugging a full response.
Tips
- 401 Unauthorized means the client has not authenticated (or the credentials failed). 403 Forbidden means the client is authenticated but not allowed.
- 502 Bad Gateway means a proxy got an invalid response from upstream. 503 Service Unavailable means the origin is overloaded or down for maintenance.
- Prefer 404 over 403 for resources you do not want to confirm exist.