$ webtoolist --read
HTTP Status Codes
Everyday HTTP response codes grouped by class, with one-line meanings and when to reach for each.
1xx — Informational
| Code | Name | Meaning |
|---|---|---|
| 100 | Continue | Client should send the rest of the request (used with large uploads). |
| 101 | Switching Protocols | Server agrees to change protocols (e.g. upgrade to WebSocket). |
2xx — Success
| Code | Name | Meaning |
|---|---|---|
| 200 | OK | Standard success; body holds the result. |
| 201 | Created | A new resource was created; set the Location header to it. |
| 202 | Accepted | Request queued for async processing, not yet done. |
| 204 | No Content | Success with an empty body — the default for DELETE and form PUTs. |
| 206 | Partial Content | Range request satisfied (resumable downloads, video seeking). |
3xx — Redirection
| Code | Name | Meaning |
|---|---|---|
| 301 | Moved Permanently | Permanent redirect; search engines update their index. |
| 302 | Found | Temporary redirect; keep using the original URL. |
| 303 | See Other | Fetch the result with GET from another URI (post/redirect/get). |
| 304 | Not Modified | Cached copy is still fresh; no body sent. |
| 307 | Temporary Redirect | Like 302 but the method must not change. |
| 308 | Permanent Redirect | Like 301 but the method must not change. |
4xx — Client Errors
| Code | Name | Meaning |
|---|---|---|
| 400 | Bad Request | Malformed request syntax or invalid payload. |
| 401 | Unauthorized | Not authenticated — send credentials. |
| 403 | Forbidden | Authenticated but not allowed; retrying won’t help. |
| 404 | Not Found | No resource at this URI. |
| 405 | Method Not Allowed | DELETE on a read-only endpoint, etc. |
| 409 | Conflict | Request clashes with current state (stale version, duplicate). |
| 410 | Gone | Resource was deliberately removed — use instead of 404 for dead APIs. |
| 413 | Payload Too Large | Request body exceeds server limits. |
| 415 | Unsupported Media Type | Wrong Content-Type (e.g. sent XML, expected JSON). |
| 422 | Unprocessable Entity | Well-formed but semantically invalid (failed validation). |
| 429 | Too Many Requests | Rate limit hit; check Retry-After. |
5xx — Server Errors
| Code | Name | Meaning |
|---|---|---|
| 500 | Internal Server Error | Unhandled server-side failure. |
| 501 | Not Implemented | Server doesn’t support this method or feature. |
| 502 | Bad Gateway | Upstream service returned garbage or died. |
| 503 | Service Unavailable | Temporarily overloaded or down for maintenance. |
| 504 | Gateway Timeout | Upstream took too long to answer. |
Rules of thumb
- 201 vs 200: return 201 when a
POSTcreates a resource, and include its URL. - 401 vs 403: 401 = “who are you?”, 403 = “I know who you are, and no.”
- 400 vs 422: 400 for syntactically broken requests, 422 for valid JSON that fails business validation.
- 302 vs 307/303: use 307/308 when a non-GET request must be repeated with its method intact; 303 after form
POSTs.