HTTP Status Codes

Complete reference for HTTP status codes and response messages

1xx Informational

Code Message Description
100 Continue The server has received the request headers and the client should proceed to send the request body
101 Switching Protocols The requester has asked the server to switch protocols
103 Early Hints Used to return some response headers before final HTTP message

2xx Success

Code Message Description
200 OK The request succeeded
201 Created The request succeeded and a new resource was created
202 Accepted The request has been received but not yet acted upon
203 Non-Authoritative Information The returned metadata is not exactly the same as is available from the origin server
204 No Content There is no content to send for this request
205 Reset Content Tells the user agent to reset the document which sent this request
206 Partial Content This response code is used when the Range header is sent from the client to request only part of a resource

3xx Redirection

Code Message Description
300 Multiple Choices The request has more than one possible response
301 Moved Permanently The URL of the requested resource has been changed permanently
302 Found The URI of the requested resource has been changed temporarily
303 See Other The server sent this response to direct the client to get the requested resource at another URI
304 Not Modified Used for caching purposes. It tells the client that the response has not been modified
307 Temporary Redirect The server sends this response to direct the client to get the requested resource at another URI
308 Permanent Redirect The resource is now permanently located at another URI

4xx Client Errors

Code Message Description
400 Bad Request The server cannot process the request due to client error
401 Unauthorized Authentication is required and has failed or has not been provided
402 Payment Required Reserved for future use
403 Forbidden The client does not have access rights to the content
404 Not Found The server cannot find the requested resource
405 Method Not Allowed The request method is known by the server but is not supported
406 Not Acceptable The server cannot produce a response matching the list of acceptable values
407 Proxy Authentication Required Authentication is required by a proxy
408 Request Timeout The server would like to shut down this unused connection
409 Conflict The request conflicts with the current state of the server
410 Gone The requested content has been permanently deleted from server
411 Length Required Server rejected the request because the Content-Length header field is not defined
412 Precondition Failed The client has indicated preconditions that the server does not meet
413 Payload Too Large Request entity is larger than limits defined by server
414 URI Too Long The URI requested by the client is longer than the server is willing to interpret
415 Unsupported Media Type The media format of the requested data is not supported by the server
416 Range Not Satisfiable The range specified by the Range header field cannot be fulfilled
417 Expectation Failed The expectation indicated by the Expect request header field cannot be met
418 I'm a teapot The server refuses to brew coffee because it is a teapot (April Fools' joke)
422 Unprocessable Entity The request was well-formed but unable to be followed due to semantic errors
429 Too Many Requests The user has sent too many requests in a given amount of time

5xx Server Errors

Code Message Description
500 Internal Server Error The server has encountered a situation it does not know how to handle
501 Not Implemented The request method is not supported by the server
502 Bad Gateway The server got an invalid response while working as a gateway
503 Service Unavailable The server is not ready to handle the request
504 Gateway Timeout The server is acting as a gateway and cannot get a response in time
505 HTTP Version Not Supported The HTTP version used in the request is not supported by the server
511 Network Authentication Required The client needs to authenticate to gain network access