HTTP status codes
Also called: HTTP response codes
An HTTP status code is a three-digit summary of a response. The first digit groups it into information (1xx), success (2xx), redirection (3xx), a request problem (4xx), or a server problem (5xx). The precise code and accompanying fields explain what happened.
For a hypothetical file API, 201 Created can report a newly created file, while 404 Not Found says no current representation was found or disclosed. A 202 Accepted response means processing was accepted, not that the job finished. Clients should inspect the documented response rather than treating every 2xx code identically.
- Read first
- HTTP
- Related
- HTTP methods, HTTP headers, Conditional requests