Instant HTTP status code reference. Search 1xx-5xx REST API response codes, RFC 9110 specs, cache headers, and quick code fixes. Fast client-side search.
Loading tool...
Master HTTP response status codes for scalable RESTful APIs. Detailed architectural patterns for 2xx success, 3xx redirects, 4xx client errors, and 5xx server failures.
HTTP Status Codes is a comprehensive RFC 9110 and RFC 9111 reference directory and client simulator covering 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Errors), and 5xx status codes (HTTP code 5xx server error responses). Search any web status code to inspect definitions, default cacheability rules, status comparisons, and client response handlers.
Catalogs standard HTTP status codes governed by RFC 9110 (HTTP Semantics) and RFC 9111 (HTTP Caching), along with common platform extensions (Cloudflare 520-527). Identifies RFC default cacheability flags, required response headers (Location, WWW-Authenticate, Retry-After), architectural nuances (301 vs 308, 401 vs 403, 404 vs 410, 502 vs 504), and provides simulated Fetch and Axios handler code for both 4xx client errors and 5xx response codes.
Code: 502 Bad Gateway vs 504 Gateway Timeout502: Upstream application server returned invalid response | 504: Upstream server failed to respond within gateway timeout thresholdHelps backend engineers and DevOps diagnose whether an upstream application process crashed (502) or suffered a slow database query or network timeout (504).
Code: 500 Internal Server Error500 Internal Server Error | Type: Server Error (5xx) | Cacheable: No | RFC 9110Standard catch-all response code for unexpected server crashes; should include structured problem details (RFC 7807) without exposing sensitive database or internal stack traces.
Code: 429429 Too Many Requests (RFC 6585) | Type: Client Error | Cacheable: No | Meaning: Rate limit exceeded. Include `Retry-After` header indicating wait seconds.Provides formal specification definition, error category, cacheability rules, and recommended API response headers.
HTTP code 5xx responses (such as 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable, and 504 Gateway Timeout) indicate that the server encountered an unexpected failure fulfilling a valid request. Common causes include unhandled exceptions, reverse proxy connection drops, backend database timeouts, and server resource exhaustion.
A 4xx web status code indicates a client-side problem (such as invalid query syntax, expired authentication tokens, or missing resources like 404). In contrast, 5xx status codes indicate backend infrastructure issues where the server failed to process a valid client request.
301 and 308 are permanent redirects that transfer SEO PageRank; 302 and 307 are temporary. Historically, 301 and 302 allowed browsers to change POST requests to GET. RFC 9110 standards 307 and 308 strictly preserve the original HTTP method and body across redirects.
HTTP 401 means "Unauthenticated": the client did not supply valid authentication credentials. HTTP 403 means "Forbidden": the server authenticated the user identity, but the account permissions refuse access to the resource.
Under RFC 9110 and RFC 9111, responses with status codes 200, 203, 204, 206, 300, 301, 404, 405, 410, 414, and 501 are inherently cacheable unless explicit Cache-Control headers (like no-store) override them.