>_ MoriDev dev.moritools.com
RFC 9110 · IANA 100% Client-Side · Zero Upload

Interactive HTTP Status Code Reference & Search

Search 1xx–5xx IANA HTTP status codes with RFC citations, real production pitfalls, caching rules, and REST/Webhook best practices.

Ready (Offline)
Quick Summary

Filter 60+ IANA HTTP status codes across 1xx Informational, 2xx Success, 3xx Redirection, 4xx Client Error, and 5xx Server Error by code number, keyword, or debugging symptom—with production pitfalls and retry guidance.

Choosing the wrong HTTP status code ripples through CDN caches, search engine crawlers, mobile SDK retry loops, and PagerDuty alerts. Returning 200 OK with an error body hides outages from observability dashboards, while returning 500 for validation mistakes pages on-call engineers unnecessarily.

This interactive reference distills RFC 9110 and companion IANA specs into instant search cards highlighting the exact operational traps (like 204 No Content breaking response.json() or ALB keep-alive timeouts triggering 502 Bad Gateway) alongside actionable REST and webhook advice.

High-Impact HTTP Status Code Confusions

01. 401 Unauthorized vs 403 Forbidden

Despite its historical name, 401 means "Unauthenticated" (missing or expired token—prompt login or refresh). 403 means "Authenticated, but lacking permission" (retrying the exact same token will never succeed).

02. 301/302 Method Downgrade vs 308/307 Preservation

Legacy browsers rewrite POST into GET when following 301 or 302 redirects, silently discarding webhook payloads. Use 307 (temporary) or 308 (permanent) whenever non-GET API routes redirect.

03. 502 Bad Gateway vs 503 Unavailable vs 504 Timeout

502 signals an upstream process crashed or dropped a keep-alive socket; 503 indicates intentional overload/maintenance (respect Retry-After); 504 means upstream stayed alive but exceeded the proxy read timeout.

HTTP Status Class Semantics & Retry Guidance

Class Ownership & Meaning Client Retry Policy
1xx Interim protocol negotiation (100, 101, 103) Handled automatically by HTTP transport layer
2xx Request accepted or fulfilled (200, 201, 202, 204) Success — do not retry; skip JSON parse on 204
3xx Redirection or cache validation (301, 304, 307, 308) Follow Location (bounded hops) or serve local cache
4xx Caller/client mistake (400, 401, 404, 409, 422, 429) Do NOT retry blindly except 408/429 with Retry-After
5xx Server or upstream proxy failure (500, 502, 503, 504) Retry idempotent calls with exponential backoff + jitter

Worked Engineering Examples

Distinguishing 400 vs 422 in JSON APIs

Input
Malformed syntax `{"age": }` vs valid JSON `{"age": -5}`
Output
400 Bad Request for broken JSON syntax · 422 Unprocessable Content for domain rule failure

Separating transport parse errors from schema validation rules gives frontend forms cleaner error-handling paths.

Designing Webhook Endpoints to Avoid Retry Storms

Input
Webhook handler queues heavy PDF generation taking 45 seconds
Output
Enqueue job immediately and reply 202 Accepted within 200ms

Prevents 504 Gateway Timeouts from causing Stripe or GitHub to re-deliver duplicate webhook events.

Frequently Asked Questions

Which HTTP status codes are cacheable by default according to RFC 9110?

Codes 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, and 501 are heuristically cacheable unless Cache-Control directives explicitly forbid caching.

Should a REST API return 404 or 403 for unauthorized private records?

Return 404 Not Found if confirming the record exists would leak sensitive information (IDOR enumeration). Return 403 Forbidden only when existence is public and permission denial is intentional.

Why does Cloudflare Pages sometimes issue 308 redirects on static sites?

Directory-formatted builds (/about/index.html) redirect /about to /about/ via HTTP 308 unless configured with file-based output (build.format: "file") matching non-trailing-slash canonicals.

What header should always accompany 429 Too Many Requests and 503 Service Unavailable?

Include a Retry-After header (seconds or HTTP-date) so well-behaved clients, crawlers, and SDKs back off cleanly instead of hammering your origin.

Continue Your Workflow

24 offline developer utilities