Product → API Products
HTTP Status Code
A numeric code in an HTTP response that summarizes the result of the request.
Motivation
HTTP status codes solve the problem of communicating what happened to a request in a standard way.
Where it fits
HTTP Status Code belongs to HTTP and API design.
Mental model
Status codes are coarse outcome signals: success, redirection, client error, or server error.
Common mistakes
- Returning 200 for failed operations.
- Leaking internal details through error responses.
Related concepts
HTTP Status Code connects to HTTP, REST, API, error handling, and observability.