HTTP Status Code Lookup & REST API Guide
HOTComprehensive HTTP status code directory with RFC specs, cause diagnostics, and REST API best practices.
🚀 Recommended WorkflowWorkflow Chain
Tools recommended next in your workflow based on your current task.
cURL to JavaScript Fetch, Axios & Python Converter
Process, format, or transform your developer payloads next.
Content Security Policy (CSP) & Header Builder
Process, format, or transform your developer payloads next.
User-Agent Header Parser & Client Detector
Process, format, or transform your developer payloads next.
HTTP Status Codes & RFC 9110 Semantics Specification
HTTP Status Codes are standardized three-digit decimal integers issued by a server in response to a client's request made to the server under the Hypertext Transfer Protocol (HTTP/1.1, HTTP/2, and HTTP/3, defined in IETF RFC 9110). The first digit defines the core class of response: 1xx (Informational), 2xx (Successful), 3xx (Redirection), 4xx (Client Error), and 5xx (Server Error). The subsequent two digits provide granular semantic diagnostics explaining the precise processing state.
In modern cloud-native systems, microservices, and RESTful APIs, returning semantically accurate status codes is paramount for observability, client-side resilience, and edge caching. A notorious engineering antipattern is returning `200 OK` for every transaction while burying failure flags inside `{ "success": false, "error": "..." }`. This practice breaks CDN cache invalidation, circumvents HTTP retry policies, blinds APM monitoring agents, and creates brittle frontend integration boundaries.
The OrvoKit HTTP Status Code Lookup tool provides instant specifications for over 60 standardized HTTP codes. Beyond raw definitions, it delivers real-world REST API response patterns, cacheability indicators, mandatory response headers (`Location`, `WWW-Authenticate`, `Retry-After`), and targeted diagnostic checklists for frontend and backend engineers.
Five-Class Taxonomy & Semantic Resolution Architecture
Deterministic status code evaluation based on authentication, authorization, resource existence, and execution health.
Evaluates request validity sequentially: Authentication ➔ Authorization ➔ Resource Validation ➔ Server Integrity ➔ Success State.
👉 Returns explicit semantic signals rather than disguising failures behind generic 200 responses.
- 1xx (Informational): Provisional responses indicating request receipt and ongoing processing (100 Continue, 101 Switching Protocols).
- 2xx (Successful): The client's action was successfully received, understood, and accepted (200 OK, 201 Created, 204 No Content).
- 3xx (Redirection): Further client action is required to fulfill the request (301 Moved Permanently, 304 Not Modified, 308 Permanent Redirect).
- 4xx (Client Error): The request contains bad syntax or invalid authorization credentials (400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found).
- 5xx (Server Error): The server encountered an unhandled exception or upstream timeout while fulfilling a valid request (500 Internal Server Error, 502 Bad Gateway, 504 Gateway Timeout).
Essential HTTP Status Codes, RFC Specifications & Developer Guidelines
| Status Code | Official Reason | Class | Cacheable | Required / Recommended Headers | Primary Application & Guidance |
|---|---|---|---|---|---|
| 200 | OK | 2xx Success | Default Yes | Content-Type | Standard success for GET retrievals and idempotent updates |
| 201 | Created | 2xx Success | Cacheable | Location | Resource created via POST; Location header points to new URI |
| 204 | No Content | 2xx Success | Default No | None (Body Forbidden) | Successful DELETE or update where no response body is returned |
| 301 | Moved Permanently | 3xx Redirect | Heuristic / Permanent | Location | Permanent URI relocation; transfers 100% SEO link equity |
| 304 | Not Modified | 3xx Redirect | Client Cache Hit | ETag, Cache-Control | Conditional validation (If-None-Match); payload not retransmitted |
| 400 | Bad Request | 4xx Client | No | None | Malformed JSON, missing required headers, or invalid syntax |
| 401 | Unauthorized | 4xx Client | No | WWW-Authenticate | Missing or invalid authentication credentials (Bearer token, cookie) |
| 403 | Forbidden | 4xx Client | No | None | Client identity confirmed, but access to requested resource is denied |
| 404 | Not Found | 4xx Client | Conditional | None | Endpoint route or target record ID does not exist |
| 429 | Too Many Requests | 4xx Client | No | Retry-After | Rate limit quota exceeded; specifies cooldown duration in seconds |
| 500 | Internal Server Error | 5xx Server | No | None | Unhandled runtime exceptions or unexpected server crashes |
| 502 | Bad Gateway | 5xx Server | No | None | Reverse proxy (Nginx, Cloudflare) received an invalid upstream response |
How to Use
11. Search by Code or Keyword
Enter a three-digit integer (e.g., 404, 502, 204) or query by scenario keywords like 'unauthorized', 'gateway', 'timeout', or 'cache'.
22. Filter Across 1xx to 5xx Categories
Toggle between Success (2xx), Client Errors (4xx), and Server Faults (5xx) to explore related code groups and behavioral norms.
33. Review RFC Specifications & Best Practices
Inspect official IETF definitions, root cause diagnoses, resolution workflows, caching constraints, and mandatory response headers.
44. Apply REST API Decision Guidelines
Copy verified status codes directly into your Express, Spring Boot, FastAPI, or Next.js route handlers.
Real-World Engineering Scenarios for HTTP Status Codes
From cloud-native microservice routing to reverse proxy edge debugging.
Issue 401 to prompt the client to log in when sessions expire, but issue 403 when a standard customer attempts to access administrative endpoints.
Upon successful POST operations, return 201 Created accompanied by `Location: /api/v1/users/42` for standards-compliant REST consumers.
Recognize that upstream Node.js or Gunicorn processes crashed or refused TCP socket connections behind the reverse proxy.
Implement Redis token bucket rate limiting and inform clients when to retry using the standardized `Retry-After: 30` header.
💡 HTTP Status Code Architecture Tips & Dangerous Antipatterns
Burying exceptions inside 200 responses breaks edge CDN caching, blinds APM monitoring alarms, and causes client network interceptors to misfire.
The HTTP specification strictly forbids response bodies in 204 No Content. Sending bytes in 204 responses causes HTTP pipelining desynchronization.
301 permanent redirects transfer search ranking signals to the new URL, whereas 302 temporary redirects maintain the original canonical URL in indexers.
Establish a clear team convention: multiple DELETE calls on the same resource can either return 204 or return 404 once deleted.
⚠️ Common Pitfalls & Mistakes to Avoid
Frequently Asked Questions (FAQ)
Expert answers to the most frequently asked questions and edge cases.
401 Unauthorized signals an Authentication failure: the server does not know who the client is, and the client must provide valid credentials. 403 Forbidden signals an Authorization failure: the server knows the client's identity, but the client does not possess the requisite permissions to access the target resource. Re-authenticating will not alter the 403 outcome.
Return 204 No Content when a mutation (such as a DELETE operation or an in-place PUT update) completes successfully and there is zero body payload to return to the client. This conserves bandwidth and signals frontend state managers that no deserialization is required.
Both occur at proxy boundaries (Nginx, Cloudflare, AWS ALB). A 502 Bad Gateway indicates that the proxy contacted the upstream server, but the upstream returned an invalid or corrupted response (e.g., process crashed or connection refused). A 504 Gateway Timeout means the upstream server failed to respond before the proxy's configured read timeout threshold expired.
Historically, browsers erroneously transformed POST requests into GET requests when following 301 and 302 redirects. RFC specifications introduced 307 (Temporary Redirect) and 308 (Permanent Redirect) to guarantee that user agents maintain the exact original HTTP method and body payload across redirection hops.
Use 400 Bad Request when the raw request syntax is malformed (e.g., invalid JSON syntax or unparseable headers). Use 422 Unprocessable Entity when the syntax is pristine, but the enclosed values violate business logic constraints (e.g., a negative age or an end date prior to a start date).
No. IANA and IETF strictly standardize HTTP status codes within the range 100 to 599. Custom codes outside this range will break HTTP proxies, CDNs, and client networking libraries. Proprietary domain error codes should always be expressed inside JSON error response bodies accompanying standard 4xx or 5xx codes.