Web & Network
HTTP Status Codes
Every HTTP status code with what it means and when to use it.
Loading the HTTP Status Codes…
About the HTTP Status Codes
A searchable reference of HTTP status codes from RFC 9110 and related RFCs, grouped into informational, success, redirection, client error and server error, each with a plain-language explanation of what it means and when an API should return it.
How to use it
- Search by code, name or meaning, such as 429, redirect or cache.
- Read the explanation and the defining RFC.
Frequently asked questions
- 401 or 403?
- 401 means the request is not authenticated (missing or invalid credentials). 403 means the user is authenticated but not allowed.
- 301, 302, 307 or 308?
- 301 and 308 are permanent; 302 and 307 are temporary. 307 and 308 keep the method and body, while 301 and 302 may turn POST into GET.
- Which code for validation errors?
- 422 Unprocessable Content for well-formed requests that fail validation, 400 for malformed ones.