-
100ContinueRFC 9110
The server got the request headers; the client can send the body.
When: Large uploads sent with Expect: 100-continue.
-
101Switching ProtocolsRFC 9110
The server is switching to the protocol the client asked for.
When: Opening a WebSocket connection.
-
103Early HintsRFC 8297
Preliminary headers sent before the final response.
When: Letting the browser preload CSS and fonts while the page is still being generated.
-
200OKRFC 9110
The request succeeded.
When: Normal successful page loads and API reads.
-
201CreatedRFC 9110
A new resource was created.
When: After a POST that creates a record; include a Location header pointing at it.
-
202AcceptedRFC 9110
The request was accepted but not finished yet.
When: Queued background jobs such as video processing or report exports.
-
203Non-Authoritative InformationRFC 9110
A proxy changed the response from the origin.
When: Rare; transforming proxies.
-
204No ContentRFC 9110
Success, with no body to return.
When: A DELETE or a PUT that has nothing to send back.
-
205Reset ContentRFC 9110
Success; the client should reset the form or view.
When: Rare; clearing a form after submit.
-
206Partial ContentRFC 9110
Only the requested byte range is returned.
When: Video streaming, resumable downloads (Range requests).
-
207Multi-StatusRFC 4918
Several status codes for several sub-requests.
When: WebDAV operations.
-
208Already ReportedRFC 5842
Members already listed earlier in a WebDAV response.
When: WebDAV bindings.
-
226IM UsedRFC 3229
The response is a delta applied to the current instance.
When: HTTP delta encoding; very rare.
-
300Multiple ChoicesRFC 9110
There are several possible responses.
When: Rare; content negotiation with options.
-
301Moved PermanentlyRFC 9110
The resource has a new permanent URL.
When: Site migrations and changed URLs. Search engines pass ranking to the new URL. Browsers may change POST to GET.
-
302FoundRFC 9110
Temporary redirect.
When: Short-term redirects, login flows. Browsers may change POST to GET.
-
303See OtherRFC 9110
Get the result from another URL with GET.
When: After a form POST, redirect to a confirmation page (Post/Redirect/Get).
-
304Not ModifiedRFC 9110
The cached copy is still valid.
When: Conditional requests with If-None-Match / If-Modified-Since.
-
307Temporary RedirectRFC 9110
Temporary redirect that keeps the method and body.
When: Redirecting an API POST without turning it into a GET; HTTP→HTTPS with HSTS.
-
308Permanent RedirectRFC 9110
Permanent redirect that keeps the method and body.
When: Permanently moved API endpoints.
-
400Bad RequestRFC 9110
The server cannot process the request because it is malformed.
When: Invalid JSON, missing required fields, bad query parameters.
-
401UnauthorizedRFC 9110
Authentication is required or failed.
When: No token, expired token, wrong password. Send a WWW-Authenticate header.
-
402Payment RequiredRFC 9110
Reserved for future use; some services use it for billing problems.
When: Quota exceeded on paid APIs.
-
403ForbiddenRFC 9110
The server understood the request but refuses it.
When: Logged in but not allowed; blocked by a firewall or file permissions.
-
404Not FoundRFC 9110
There is nothing at this URL.
When: Deleted pages, typos in links, unknown API IDs.
-
405Method Not AllowedRFC 9110
The URL exists but not for this HTTP method.
When: Sending POST to a read-only endpoint. Include an Allow header.
-
406Not AcceptableRFC 9110
No response matches the Accept headers.
When: Client asks for XML from a JSON-only API.
-
407Proxy Authentication RequiredRFC 9110
The proxy needs credentials.
When: Corporate proxies.
-
408Request TimeoutRFC 9110
The client took too long to send the request.
When: Slow or stalled connections.
-
409ConflictRFC 9110
The request conflicts with the current state.
When: Duplicate usernames, edit conflicts, version mismatches.
-
410GoneRFC 9110
The resource was removed on purpose and will not return.
When: Permanently deleted content; tells search engines to drop it faster than 404.
-
411Length RequiredRFC 9110
A Content-Length header is required.
When: Uploads without a declared length.
-
412Precondition FailedRFC 9110
A condition in the request headers was not met.
When: If-Match with an outdated ETag (optimistic locking).
-
413Content Too LargeRFC 9110
The request body is bigger than the server allows.
When: File uploads over the size limit.
-
414URI Too LongRFC 9110
The URL is longer than the server will handle.
When: Huge query strings; switch to POST.
-
415Unsupported Media TypeRFC 9110
The body format is not supported.
When: Sending form data to a JSON-only endpoint, or the wrong Content-Type.
-
416Range Not SatisfiableRFC 9110
The requested byte range is outside the file.
When: Resuming a download past the end of a file.
-
417Expectation FailedRFC 9110
The Expect header cannot be met.
When: Rare; Expect: 100-continue refused.
-
418I'm a teapotRFC 2324
An April Fools’ joke code from the Hyper Text Coffee Pot Control Protocol.
When: Never in production; sometimes used for blocked bots.
-
421Misdirected RequestRFC 9110
The request reached a server that cannot answer for this host.
When: HTTP/2 connection reuse across different hosts.
-
422Unprocessable ContentRFC 9110
The syntax is fine but the data is invalid.
When: Validation errors such as “email already taken” or “end date before start”.
-
423LockedRFC 4918
The resource is locked.
When: WebDAV file locks.
-
424Failed DependencyRFC 4918
The request failed because an earlier one failed.
When: WebDAV batches.
-
425Too EarlyRFC 8470
The server will not process a request that might be replayed.
When: TLS 1.3 early data.
-
426Upgrade RequiredRFC 9110
The client must switch to another protocol.
When: Forcing a newer TLS or HTTP version.
-
428Precondition RequiredRFC 6585
The request must be conditional.
When: APIs that demand If-Match to prevent lost updates.
-
429Too Many RequestsRFC 6585
Rate limit exceeded.
When: API throttling and login brute-force protection. Send Retry-After.
-
431Request Header Fields Too LargeRFC 6585
The headers are too big.
When: Oversized cookies.
-
451Unavailable For Legal ReasonsRFC 7725
Blocked because of a legal demand.
When: Court orders, regional censorship, GDPR geo-blocking.
-
500Internal Server ErrorRFC 9110
Something went wrong on the server.
When: Unhandled exceptions and bugs. Check the server logs.
-
501Not ImplementedRFC 9110
The server does not support this functionality.
When: Unsupported HTTP methods.
-
502Bad GatewayRFC 9110
A proxy or gateway got an invalid response upstream.
When: The app server behind Nginx or a CDN crashed or returned garbage.
-
503Service UnavailableRFC 9110
The server is overloaded or down for maintenance.
When: Planned maintenance or traffic spikes. Send Retry-After; search engines treat it as temporary.
-
504Gateway TimeoutRFC 9110
A proxy did not get an answer upstream in time.
When: Slow database queries or long-running requests behind a load balancer.
-
505HTTP Version Not SupportedRFC 9110
The HTTP version is not supported.
When: Very rare.
-
506Variant Also NegotiatesRFC 2295
A content negotiation configuration error.
When: Very rare.
-
507Insufficient StorageRFC 4918
The server cannot store what is needed.
When: WebDAV servers with a full disk.
-
508Loop DetectedRFC 5842
An infinite loop was found while processing.
When: WebDAV.
-
511Network Authentication RequiredRFC 6585
You must log in to the network first.
When: Hotel and airport Wi-Fi captive portals.