Skip to content
Article Issue #5253

HTTP Status Codes

What to know

HTTP status codes are standardized numeric responses that an HTTP server includes in every reply to indicate whether a request succeeded, requires further action, or encountered an error; When a server processes a request, it selects the most appropriate status code to describe the outcome: 200 for a successful GET, 201 for a created resource, 400 for a malformed request, 401 for missing authentication, 403 for insufficient permissions, 404 for a missing resource, and 500 for an unhandled server error.; Returning semantically correct status codes is essential for API consumers to handle errors gracefully

HTTP Status Codes, WikiWalls Glossary illustration

« Back to Glossary Index

HTTP status codes are standardized numeric responses that an HTTP server includes in every reply to indicate whether a request succeeded, requires further action, or encountered an error. The first digit defines the response class, and the remaining two digits specify the exact condition.

How it works

When a server processes a request, it selects the most appropriate status code to describe the outcome: 200 for a successful GET, 201 for a created resource, 400 for a malformed request, 401 for missing authentication, 403 for insufficient permissions, 404 for a missing resource, and 500 for an unhandled server error.

Key facts

  • 2xx Success: 200 OK, 201 Created, 204 No Content indicate successful operations
  • 4xx Client errors: 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 429 Too Many Requests
  • 5xx Server errors: 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable

For builders

Returning semantically correct status codes is essential for API consumers to handle errors gracefully. Using 200 for all responses, including errors, forces clients to parse bodies rather than relying on standard HTTP semantics.

Sources

« Back to Definition Index
Administrator · 41 published guides · Joined 2016

Welcome to wikiwalls

The WikiWalls Journal · Free, weekly

One careful fix in your inbox each Wednesday.

No affiliate links inside the diagnosis. No sponsored "top 10". One careful fix per week — unsubscribe in one click.

No tracking pixels · No spam · Edited by a human.