Understanding HTTP Status Codes: A Complete Guide to 1xx–5xx Responses
This article explains the structure and meaning of HTTP status codes, detailing each of the five response classes (1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error) and providing concise descriptions for the most common codes within each class.
HTTP status codes are three-digit numbers where the first digit denotes the response class and the last two digits specify the particular condition.
1xx – Informational
100 : Continue – initial request received, client should continue sending the rest.
101 : Switching Protocols – server will switch to a different protocol as requested.
2xx – Success
200 : OK – request succeeded and the server returned the requested resource.
201 : Created – request succeeded and a new resource was created.
202 : Accepted – request accepted for processing but not yet completed.
203 : Non‑Authoritative Information – returned meta‑information from a third‑party source.
204 : No Content – request succeeded but no content is returned.
205 : Reset Content – request succeeded, client should reset the document view.
206 : Partial Content – server is delivering part of the resource due to a range request.
3xx – Redirection
300 : Multiple Choices – multiple options for the resource are available.
301 : Moved Permanently – resource has a new permanent URI.
302 : Found – resource temporarily resides under a different URI.
303 : See Other – response can be found at another URI using a GET request.
304 : Not Modified – resource has not changed since last request.
305 : Use Proxy – requested resource must be accessed through the proxy.
307 : Temporary Redirect – same as 302 but the request method must not change.
4xx – Client Errors
400 : Bad Request – server cannot understand the request due to malformed syntax.
401 : Unauthorized – authentication is required and has failed or not been provided.
402 : Payment Required – reserved for future use.
403 : Forbidden – server refuses to fulfill the request.
404 : Not Found – server cannot find the requested resource.
405 : Method Not Allowed – request method is not supported for the resource.
406 : Not Acceptable – server cannot produce a response matching the list of acceptable values.
407 : Proxy Authentication Required – client must authenticate with the proxy.
408 : Request Timeout – server timed out waiting for the request.
409 : Conflict – request could not be completed due to a conflict with the current state of the resource.
410 : Gone – resource is permanently unavailable.
411 : Length Required – server refuses to accept request without a defined Content‑Length.
412 : Precondition Failed – server does not meet one of the preconditions specified in the request.
413 : Payload Too Large – request entity is larger than the server is willing or able to process.
414 : URI Too Long – the URI provided was too long for the server to process.
415 : Unsupported Media Type – request entity has a media type which the server or resource does not support.
416 : Range Not Satisfiable – client has asked for a portion of the file, but the server cannot supply that portion.
417 : Expectation Failed – server cannot meet the requirements of the Expect request-header field.
5xx – Server Errors
500 : Internal Server Error – generic error message when the server encounters an unexpected condition.
501 : Not Implemented – server does not support the functionality required to fulfill the request.
502 : Bad Gateway – server received an invalid response from an upstream server.
503 : Service Unavailable – server is currently unable to handle the request due to overload or maintenance.
504 : Gateway Timeout – server did not receive a timely response from an upstream server.
505 : HTTP Version Not Supported – server does not support the HTTP protocol version used in the request.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
