Web Development · Cheatsheet
HTTP Status Codes Cheatsheet
Common HTTP status codes and headers for requests, redirects, authentication, caching, and server errors.
41 commands 7 sections
No entry matches that filter.
-
100 ContinueServer received request headers, client should send body -
101 Switching ProtocolsServer is changing protocols (e.g., to WebSocket) -
103 Early HintsPreload resources while server prepares response
-
200 OKRequest succeeded -
201 CreatedRequest succeeded and created one or more resources -
202 AcceptedRequest accepted for processing (async) -
204 No ContentRequest succeeded with no response content; not specific to DELETE -
206 Partial ContentPartial resource returned (range request)
-
301 Moved PermanentlyResource permanently moved to new URL -
302 FoundTemporary redirect (method may change) -
303 See OtherRetrieve the indicated resource with GET or HEAD -
304 Not ModifiedCached version is still valid -
307 Temporary RedirectTemporary redirect (preserves method) -
308 Permanent RedirectPermanent redirect (preserves method)
-
400 Bad RequestInvalid request syntax or parameters -
401 UnauthorizedAuthentication required -
403 ForbiddenServer refuses the request; this does not prove successful authentication -
404 Not FoundNo current representation found, or the server will not disclose that one exists -
405 Method Not AllowedHTTP method not supported for this URL -
408 Request TimeoutServer timed out waiting for request -
409 ConflictRequest conflicts with current state -
410 GoneResource permanently deleted -
413 Content Too LargeRequest body exceeds server limit -
415 Unsupported Media TypeContent-Type not supported -
422 Unprocessable ContentRequest is well-formed but has semantic errors -
429 Too Many RequestsRate limit exceeded
-
500 Internal Server ErrorGeneric server error -
501 Not ImplementedServer does not support the method -
502 Bad GatewayInvalid response from upstream server -
503 Service UnavailableServer temporarily overloaded/down -
504 Gateway TimeoutUpstream server timed out
-
Content-Type: application/jsonResponse body format -
Authorization: Bearer <token>Authentication token -
Cache-Control: max-age=3600Cache for 1 hour -
Content-Length: 1234Size of response body in bytes -
Accept: application/jsonClient expects JSON response -
X-Rate-Limit-Remaining: 99API rate limit remaining -
Location: /new-urlRedirect target URL -
ETag: "abc123"Resource version identifier
-
https://www.rfc-editor.org/rfc/rfc9110.htmlRFC 9110: HTTP methods, response status meanings, and header semantics. -
https://www.iana.org/assignments/http-status-codesIANA registry: assigned HTTP status codes and specification references.
Related cheatsheets
Guides that use these commands
Tools for this work
- HTTP Status Code LookupSearch HTTP status codes by number or description. Get explanations, use cases, and solutions for every status code.
- HTTP Request BuilderBuild and send an HTTP request. Shows status, headers, and body. Public http and https hosts only.
- API Docs GeneratorGenerate API documentation in Markdown or OpenAPI format.