Developer

JSON (22)API (9)Text (31)Security (11)Network (1)

SEO & Content

SEO (11)AI (7)Design (8)Image (9)

Data & Math

XML (6)Math (6)Database (3)Date (4)

More Tools

Next.js (5)PDF (5)Video (3)Random (2)
WorkspacesAll ToolsAboutPrivacyTermsContact

© 2026 Web Util Slyce. All tools run client-side — your data stays private.

APIHTTP Status Code Reference

HTTP Status Code Reference

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

Complete ReferenceSearch & FilterCode ExamplesQuick Copy
HomeAPIHTTP Status Code Reference
All tools
Tool

Searchable reference of all HTTP status codes with descriptions and use cases.

Complete Reference

All HTTP status codes from 1xx to 5xx with RFC references.

Search & Filter

Filter by category (success, redirect, client error, server error).

Code Examples

Example responses and common scenarios for each status code.

Quick Copy

Copy status code descriptions and example responses.

How to Use

1

Browse or search for a status code

Scroll through the list or type a code (e.g., 404) or name (e.g., "Not Found") to find the status code you need.

2

Filter by category

Use category filters to narrow results — 2xx for success codes, 4xx for client errors, 5xx for server errors, etc.

3

View details and examples

Click any status code to see its full description, RFC reference, and common usage examples.

4

Copy for documentation

Copy the status code description or example response for use in your API documentation.

0 chars0 words0 lines
Ln 1, Col 1

Ctrl+Enter to look up

Frequently Asked Questions

401 Unauthorized means the client must authenticate. 403 Forbidden means the server understood the request but refuses to authorize it, even with authentication.

Related Tools

REST API Client

Send HTTP requests (GET, POST, PUT, DELETE) and inspect responses from your browser.

WebSocket Tester

Connect to WebSocket endpoints, send messages, and inspect frames.

HTTP Status Code Reference

Searchable reference of all HTTP status codes with descriptions and use cases.

Request Builder

Build HTTP requests interactively and generate code snippets in multiple languages.

curl to Fetch Converter

Convert curl commands to JavaScript fetch, Python requests, and more.

OpenAPI Validator

Validate OpenAPI 3.x and Swagger 2.0 specifications for correctness.

Mock API Generator

Generate mock API responses from JSON schemas for rapid development.

Docker → Compose

Convert docker run commands to docker-compose.yml format instantly.

Fake Data Generator

Generate realistic fake data including names, emails, phone numbers, addresses, and more.

Developer Workspace
Related:JSON FormatterJSON ValidatorJSON CompareJSON Path Tester

How to Use the Free Client-Side HTTP Status Code Reference

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:

  1. Scroll through the complete list or type a code such as 404 or a name such as "Not Found" to narrow things down instantly.
  2. Filter by category to see only informational, success, redirection, client error, or server error codes.
  3. Click any status code to expand its full description, RFC reference, and common usage examples.
  4. Copy the description or an example response straight into your API documentation.

When to Use HTTP Status Code Reference

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.

HTTP Status Code Reference Tips and Best Practices

  1. Return 201 Created rather than 200 OK when a POST successfully creates a resource, and point the Location header at the new resource.
  2. Reserve 401 Unauthorized for missing or invalid credentials, 403 Forbidden for authenticated users who lack permission, and 400 for malformed request syntax.
  3. Never return 500 Internal Server Error for a client mistake — if the client sent invalid data, that is a 4xx response such as 400 or 422.
  4. Use 409 Conflict for state clashes like duplicate entries or version conflicts, and keep the RFC reference handy when you document custom error responses.

Why Client-Side Privacy Matters for Planning API Error Handling

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.

How to Use HTTP Status Code Reference

1

Browse or search for a status code

Scroll through the list or type a code (e.g., 404) or name (e.g., "Not Found") to find the status code you need.

2

Filter by category

Use category filters to narrow results — 2xx for success codes, 4xx for client errors, 5xx for server errors, etc.

3

View details and examples

Click any status code to see its full description, RFC reference, and common usage examples.

4

Copy for documentation

Copy the status code description or example response for use in your API documentation.

Examples

Practical examples to help you get the most out of HTTP Status Code Reference:

Common 4xx error responses

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

REST API success patterns

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

Common Mistakes and How to Avoid Them

Using 400 Bad Request for authentication failures

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.

Returning 500 Internal Server Error for client mistakes

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.

Frequently Asked Questions

What is the difference between 401 and 403?

401 Unauthorized means the client must authenticate. 403 Forbidden means the server understood the request but refuses to authorize it, even with authentication.

What does 502 Bad Gateway mean?

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.

When should I use 201 vs 200?

Use 200 OK for successful requests that return data. Use 201 Created specifically when a POST request successfully creates a new resource.

Can I filter by status code category?

Yes. Use the category filters to show only 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), or 5xx (Server Error) codes.

Key Features

Complete Reference

All HTTP status codes from 1xx to 5xx with RFC references.

Search & Filter

Filter by category (success, redirect, client error, server error).

Code Examples

Example responses and common scenarios for each status code.

Quick Copy

Copy status code descriptions and example responses.

Common Use Cases

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

Tips & Best Practices

Use 201 for resource creation

Return 201 Created (not 200 OK) when a POST request successfully creates a new resource, and include the resource URL in the Location header.

Use 409 for conflicts

Return 409 Conflict when a request conflicts with the current state of the resource, such as duplicate entries or version conflicts.

More Tools in This Workspace

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.