HTTP status code reference. Browse all HTTP status codes from 1xx to 5xx with descriptions, RFC references, and code examples.
100% browser-based — your data never leaves your device
Searchable reference of all HTTP status codes with descriptions and use cases.
Scroll through the list or type a code (e.g., 404) or name (e.g., "Not Found") to find the status code you need.
Use category filters to narrow results — 2xx for success codes, 4xx for client errors, 5xx for server errors, etc.
Click any status code to see its full description, RFC reference, and common usage examples.
Copy the status code description or example response for use in your API documentation.
Ctrl+Enter to look up
Send HTTP requests (GET, POST, PUT, DELETE) and inspect responses from your browser.
WebSocket TesterConnect to WebSocket endpoints, send messages, and inspect frames.
HTTP Status Code ReferenceSearchable reference of all HTTP status codes with descriptions and use cases.
Request BuilderBuild HTTP requests interactively and generate code snippets in multiple languages.
curl to Fetch ConverterConvert curl commands to JavaScript fetch, Python requests, and more.
OpenAPI ValidatorValidate OpenAPI 3.x and Swagger 2.0 specifications for correctness.
Mock API GeneratorGenerate mock API responses from JSON schemas for rapid development.
Docker → ComposeConvert docker run commands to docker-compose.yml format instantly.
Fake Data GeneratorGenerate realistic fake data including names, emails, phone numbers, addresses, and more.
Every developer has stared at a 502 or a 422 and wondered what the server actually meant. This tool is a searchable lookup for exactly that moment, covering the full range of HTTP status codes from 1xx to 5xx. Instead of flipping through specs, you get descriptions, RFC references, and realistic examples in one place:
Two kinds of people need this reference daily. First are developers debugging API responses — the ones staring at a console full of 403s and needing to know immediately whether that is an auth problem or a permissions problem. Second are API designers, who should consult it while defining endpoints so they return semantically correct codes rather than throwing a generic 400 or 500 at every failure. The distinction between 401 Unauthorized and 403 Forbidden, or between 200 OK and 201 Created, is exactly the sort of nuance this reference keeps straight.
The reference also matters for consistency across a codebase. When a team agrees that resource creation returns 201 with the new resource URL in the Location header, and that conflicts return 409, error handling becomes predictable for every client consuming the API. That consistency is what separates an API that reads like a spec from one that forces clients to guess.
This reference works entirely in your browser, which matters more than it first appears. While status codes themselves are not secret, how you plan to use them often is — your decisions about when to return 401 versus 403 encode your authentication and authorization design, which is precisely the kind of internal convention you do not want a third-party lookup service recording.
Browsing and copying from a locally running reference also means your team's API documentation process stays self-contained. No code samples, no lookup habits, and no search queries about your error handling are ever transmitted, so your API design deliberations remain private from start to finish.
Scroll through the list or type a code (e.g., 404) or name (e.g., "Not Found") to find the status code you need.
Use category filters to narrow results — 2xx for success codes, 4xx for client errors, 5xx for server errors, etc.
Click any status code to see its full description, RFC reference, and common usage examples.
Copy the status code description or example response for use in your API documentation.
Practical examples to help you get the most out of HTTP Status Code Reference:
400 Bad Request — Invalid input syntax or missing required fields 401 Unauthorized — Missing or invalid authentication credentials 403 Forbidden — Authenticated but insufficient permissions 404 Not Found — The requested resource does not exist 409 Conflict — Resource state conflict (e.g., duplicate entry) 422 Unprocessable Entity — Semantic validation errors
200 OK — Successful GET or PUT returning data 201 Created — Successful POST creating a new resource 204 No Content — Successful DELETE with no response body
Return 401 Unauthorized when credentials are missing or invalid, and 403 Forbidden when the user is authenticated but lacks permission. 400 is for malformed request syntax.
If the client sent invalid data, return a 4xx status code (400, 422, etc.), not 500. 500 means the server itself encountered an unexpected condition.
401 Unauthorized means the client must authenticate. 403 Forbidden means the server understood the request but refuses to authorize it, even with authentication.
502 Bad Gateway means the server, acting as a gateway or proxy, received an invalid response from an upstream server it accessed to fulfill the request.
Use 200 OK for successful requests that return data. Use 201 Created specifically when a POST request successfully creates a new resource.
Yes. Use the category filters to show only 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), or 5xx (Server Error) codes.
All HTTP status codes from 1xx to 5xx with RFC references.
Filter by category (success, redirect, client error, server error).
Example responses and common scenarios for each status code.
Copy status code descriptions and example responses.
HTTP Status Code Reference is useful in a variety of scenarios across different workflows:
Quickly look up status codes while debugging API responses
Learn proper status code usage when designing RESTful APIs
Reference RFC documentation for custom API error responses
Return 201 Created (not 200 OK) when a POST request successfully creates a new resource, and include the resource URL in the Location header.
Return 409 Conflict when a request conflicts with the current state of the resource, such as duplicate entries or version conflicts.
Explore more tools in the Developer Workspace workspace:
JSON Formatter
Format, minify, validate, and explore JSON with tree view, JSONPath queries, and multi-format export — the complete JSON workbench.
JSON Validator
Validate JSON data and detect syntax errors with detailed error messages and line numbers.
JSON Compare
Compare two JSON files side by side with real-time diff highlighting.
JSON Path Tester
Test JSONPath expressions against JSON data and see matched results.
JSON Query Tool
Extract values from JSON using dot-notation and bracket-notation paths.
JSON Schema Generator
Generate JSON Schema (draft-07) from sample JSON data automatically.