HTTP (Hypertext Transfer Protocol) defines a wide range of status codes to communicate the status of requests made by clients to web servers. Here is a list of the top 200 HTTP status codes with their detailed descriptions:
- 100 Continue The server has received the initial part of the request and will continue processing it.
- 101 Switching Protocols The server agrees to switch protocols specified in the Upgrade header of the request.
- 102 Processing The server is still processing the request, and the client should wait for the final response.
- 103 Early Hints The server is sending some headers to the client before sending the final response.
- 200 OK The request was successful, and the server has returned the requested data.
- 201 Created The request has been fulfilled, and a new resource is created as a result.
- 202 Accepted The request has been accepted but not yet acted upon.
- 203 Non-Authoritative Information The server successfully processed the request, but the returned information may be from another source.
- 204 No Content The server successfully processed the request, but there is no representation to return.
- 205 Reset Content The server asks the client to reset the document from which the original request was sent.
- 206 Partial Content The server is delivering only part of the resource due to a range header sent by the client.
- 207 Multi-Status The message body that follows is an XML message containing multiple status codes.
- 208 Already Reported The members of a DAV binding have already been enumerated in a previous reply.
- 226 IM Used The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
- 300 Multiple Choices The requested resource has multiple choices, each with different locations.
- 301 Moved Permanently The requested resource has been assigned a new permanent URI and any future references to this resource should use one of the returned URIs.
- 302 Found (Previously “Moved Temporarily”) The requested resource is temporarily located at a different URI.
- 303 See Other The response to the request can be found under a different URI.
- 304 Not Modified The client can use the cached copy of the requested resource since it has not been modified.
- 305 Use Proxy The requested resource must be accessed through the proxy given by the Location field.
- 306 (Unused) This status code was used in a previous version of the HTTP/1.1 specification but is no longer used.
- 307 Temporary Redirect The requested resource is temporarily located at a different URI, and the client should use the provided URI for future requests.
- 308 Permanent Redirect The requested resource has been permanently moved to a different URI, and any future references should use this URI.
- 400 Bad Request The server could not understand the request due to malformed syntax.
- 401 Unauthorized The request requires user authentication.
- 402 Payment Required This status code is reserved for future use.
- 403 Forbidden The client does not have permission to access the requested resource.
- 404 Not Found The requested resource could not be found on the server.
- 405 Method Not Allowed The method specified in the request is not allowed for the resource.
- 406 Not Acceptable The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
- 407 Proxy Authentication Required The client must first authenticate itself with the proxy.
- 408 Request Timeout The client did not produce a request within the time the server was prepared to wait.
- 409 Conflict The request could not be completed due to a conflict with the current state of the target resource.
- 410 Gone The requested resource is no longer available, and no forwarding address is known.
- 411 Length Required The server refuses to accept the request without a defined Content-Length header.
- 412 Precondition Failed One or more conditions in the request header fields evaluated to false when tested on the server.
- 413 Payload Too Large The request is larger than the server is willing or able to process.
- 414 URI Too Long The URI provided in the request is too long for the server to process.
- 415 Unsupported Media Type The server does not support the media type requested in the request.
- 416 Range Not Satisfiable The requested range cannot be served as it is outside the bounds of the available data.
- 417 Expectation Failed The server cannot meet the requirements of the Expect request-header field.
- 418 I’m a teapot This code was defined in 1998 as an April Fool’s joke and is not expected to be implemented by actual HTTP servers.
- 421 Misdirected Request The request was directed at a server that is not able to produce a response.
- 422 Unprocessable Entity The request was well-formed but was unable to be followed due to semantic errors.
- 423 Locked The resource that is being accessed is locked.
- 424 Failed Dependency The request failed due to the failure of a previous request.
- 426 Upgrade Required The client should switch to a different protocol, specified in the Upgrade header field.
- 428 Precondition Required The server requires the request to be conditional.
- 429 Too Many Requests The user has sent too many requests in a given amount of time.
- 431 Request Header Fields Too Large The server is unwilling to process the request because either an individual header field or all the header fields collectively are too large.
- 451 Unavailable For Legal Reasons The server is denying access to the resource as a consequence of a legal demand.
- 500 Internal Server Error The server encountered an unexpected condition that prevented it from fulfilling the request.
- 501 Not Implemented The server does not support the functionality required to fulfill the request.
- 502 Bad Gateway The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
- 503 Service Unavailable The server is currently unable to handle the request due to a temporary overload or maintenance of the server.
- 504 Gateway Timeout The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI or some other auxiliary server it needed to access to complete the request.
- 505 HTTP Version Not Supported The server does not support the HTTP protocol version used in the request.
- 506 Variant Also Negotiates The server has an internal configuration error and the chosen variant resource is configured to engage in transparent content negotiation itself and is therefore not a proper endpoint in the negotiation process.
- 507 Insufficient Storage The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
- 508 Loop Detected The server detected an infinite loop while processing the request.
- 510 Not Extended Further extensions to the request are required for the server to fulfill it.
- 511 Network Authentication Required The client needs to authenticate to gain network access.
This list covers the top 62 HTTP status codes. Note that there are more status codes in the HTTP specification, but they are less commonly encountered in everyday web development scenarios.
Leave a Reply