Home HTTP status codes
Post
Cancel

HTTP status codes

HTTP Status Codes

Categories

  • 1XX status codes: Informational Requests
  • 2XX status codes: Successful Requests
  • 3XX status codes: Redirects
  • 4XX status codes: Client Errors
  • 5XX status codes: Server Errors

Complete List

CodeNameDescription
100ContinueEverything so far is OK and that the client should continue with the request or ignore it if it is already finished.
101Switching ProtocolsThe client has asked the server to change protocols and the server has agreed to do so.
102ProcessingThe server has received and is processing the request, but that it does not have a final response yet.
103Early HintsUsed to return some response headers before final HTTP message.
200OKSuccessful request.
201CreatedThe server acknowledged the created resource.
202AcceptedThe client’s request has been received but the server is still processing it.
203Non-Authoritative InformationThe response that the server sent to the client is not the same as it was when the server sent it.
204No ContentThere is no content to send for this request
205Reset ContentTells the user agent to reset the document which sent this request.
206Partial ContentThis response code is used when the range-header is sent from the client to request only part of a resource.
207Multi-StatusConveys information about multiple resources, for situations where multiple status codes might be appropriate.
208Already ReportedThe members of a DAV binding have already been enumerated in a preceding part of the multi-status response.
226IM UsedIM is a specific extension of the HTTP protocol. The extension allows a HTTP server to send diffs (changes) of resources to clients.
300Multiple ChoicesThe request has more than one possible response. The user agent should choose one.
301Moved PermanentlyThe URL of the requested resource has been changed permanently. The new URL is given in the response.
302FoundThis response code means that the URI of requested resource has been changed temporarily
303See OtherThe server sent this response to direct the client to get the requested resource at another URI with a GET request.
304Not ModifiedIt tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.
305Use ProxyDefined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. (discontinued)
307Temporary RedirectThe server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request.
308Permanent RedirectThis means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header.
400Bad RequestThe server could not understand the request
401UnauthorizedThe client didn’t authenticate himself.
402Payment RequiredThis response code is reserved for future use. The initial aim for creating this code was using it for digital payment systems, however this status code is used very rarely and no standard convention exists.
403ForbiddenThe client does not have access rights to the content
404Not FoundThe server can not find the requested resource
405Method Not AllowedThe request method is known by the server but is not supported by the target resource
406Not AcceptableThe reponse doens’t conforms to the creteria given by the client
407Proxy Authentication RequiredThis is similar to 401 Unauthorized but authentication is needed to be done by a proxy.
408Request TimeoutThis response is sent on an idle connection by some servers, even without any previous request by the client.
409ConflictThis response is sent when a request conflicts with the current state of the server.
410GoneThis response is sent when the requested content has been permanently deleted from server, with no forwarding address.
411Length RequiredServer rejected the request because the Content-Length header field is not defined and the server requires it.
412Precondition FailedAccess to the target resource has been denied.
413Payload Too LargeRequest entity is larger than limits defined by server.
414Request-URI Too LongThe URI requested by the client is longer than the server is willing to interpret.
415Unsupported Media TypeThe media format is not supported by the server.
416Requested Range Not SatisfiableThe range specified by the Range header field in the request cannot be fulfilled.
417Expectation Failedthe expectation indicated by the Expect request header field cannot be met by the server.
418I’m a teapotThe server refuses the attempt to brew coffee with a teapot.
421Misdirected RequestThe request was directed at a server that is not able to produce a response.
422Unprocessable EntityThe request was well-formed but was unable to be followed due to semantic errors.
423LockedThe resource that is being accessed is locked.
424Failed DependencyThe request failed due to failure of a previous request.
426Upgrade RequiredThe server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.
428Precondition Requiredhis response is intended to prevent the ‘lost update’ problem, where a client GETs a resource’s state, modifies it and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.
429Too Many RequestsThe user has sent too many requests in a given amount of time
431Request Header Fields Too LargeThe server is can’t process the request because its header fields are too large.
444Connection Closed Without ResponseThe connection opened, but no data was written.
451Unavailable For Legal ReasonsThe user agent requested a resource that cannot legally be provided (such as a web page censored by a government)
499Client Closed RequestThe client closed the connection, despite the server was processing the request already.
500Internal Server ErrorThe server has encountered a situation it does not know how to handle.
501Not ImplementedThe request method is not supported by the server and cannot be handled.
502Bad GatewayThis error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.
503Service UnavailableThe server is not ready to handle the request.
504Gateway TimeoutThis error response is given when the server is acting as a gateway and cannot get a response in time.
505HTTP Version Not SupportedThe HTTP version used in the request is not supported by the server.
506Variant Also Negotiatesthe chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.
507Insufficient StorageThe method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
508Loop DetectedThe server detected an infinite loop while processing the request.
510Not ExtendedFurther extensions to the request are required for the server to fulfill it.
511Network Authentication RequiredIndicates that the client needs to authenticate to gain network access.
599Network Connect Timeout ErrorThe connection timed out due to a overloaded server, a hardware error or a infrastructure error.
This post is licensed under CC BY 4.0 by the author.