Network & web
HTTP Status Code Reference
Search HTTP status codes by number, phrase, class, and common usage locally in your browser.
26 status codes matched. Runs locally in your browser.
1xx Informational
The server received the request headers and the client can continue sending the body.
The server agrees to switch protocols.
2xx Success
The request succeeded.
The request succeeded and created a resource.
The request was accepted but processing is not finished.
The request succeeded and there is no response body.
3xx Redirection
The resource has a permanent new URL.
The resource is temporarily available at another URL.
Redirect the client to another URL using GET.
Cached content is still valid.
Temporary redirect while preserving method and body.
Permanent redirect while preserving method and body.
4xx Client error
The request is malformed or invalid.
Authentication is required or failed.
The server understood the request but refuses to authorize it.
The resource could not be found.
The URL exists but does not allow this HTTP method.
The request conflicts with current resource state.
The resource is intentionally no longer available.
The request is syntactically valid but semantically invalid.
The client exceeded a rate limit.
5xx Server error
The server hit an unexpected error.
The server does not support the requested functionality.
A gateway or proxy received an invalid upstream response.
The server is temporarily unavailable.
A gateway or proxy timed out waiting for an upstream server.
How to use this tool
Search by status code, phrase, class, or common usage such as `redirect`, `rate limit`, `gateway`, or `validation`.
Filter by class when you only want 2xx success, 3xx redirects, 4xx client errors, or 5xx server errors.
Copy the exact code and phrase when documenting API behavior, debugging logs, or writing support notes.
HTTP status code classes
1xx codes are informational and are usually handled by browsers, proxies, or protocol implementations.
2xx codes mean the request succeeded, but the exact semantics differ between `200 OK`, `201 Created`, `202 Accepted`, and `204 No Content`.
3xx codes describe redirects and caching decisions. Pick permanent versus temporary redirects carefully because browsers and search engines can cache them.
4xx codes usually mean the client request has a problem, while 5xx codes mean the server or upstream infrastructure failed.
Common debugging choices
Use 400 for malformed requests and 422 when JSON or form syntax is valid but the submitted fields fail validation.
Use 401 when authentication is missing or invalid, and 403 when the user is authenticated but lacks permission.
Use 429 for rate limits and include a `Retry-After` header when clients can safely retry later.
Use 502, 503, and 504 to distinguish upstream gateway failures, temporary unavailability, and gateway timeouts.
Examples
Permanent canonical redirect
Inputhttp://example.com/pageOutput
301 Moved Permanently -> https://example.com/page
API validation error
InputPOST /users with a valid JSON body but missing emailOutput
422 Unprocessable Content
Rate-limited API client
Output429 Too Many Requests with Retry-After: 60
FAQ
What is the difference between 401 and 403?
401 means authentication is required or failed. 403 means the server understood the request, but the authenticated user is not allowed to access the resource.
Should I use 301 or 302 for redirects?
Use 301 for permanent URL moves and 302 for temporary redirects. Use 307 or 308 when the original HTTP method and body must be preserved.
What does 429 mean?
429 Too Many Requests means the client exceeded a rate limit. APIs should include retry guidance when possible.
Are 5xx errors always application bugs?
No. 5xx responses can come from app exceptions, overloaded servers, reverse proxies, CDNs, upstream dependency failures, or timeouts.