Protocols
Saved & recent

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
Further reading
1xx · informational 100 Continue 2xx · success 201 Created 3xx · redirection 304 Not Modified 4xx · client error 404 Not Found 5xx · server error 503 Unavailable 202 Accepted job pending
The first digit identifies a status family. A 304 response is in the 3xx family without redirecting to a new URL. A 202 response accepts work but does not prove it has finished.

View in the full Protocols collection