400 Bad
Request
|
This response means that server could not understand the request due to invalid
syntax.
The server cannot or will not process the request due to something that is perceived
to be a client error (e.g., malformed request syntax, invalid request message
framing, or deceptive request routing).
|
401 Unauthorized
|
The request has not been applied because it lacks valid authentication credentials
for the target resource.
Although the HTTP standard specifies "unauthorized", semantically this response means
"unauthenticated". That is, the client must authenticate itself to get the requested
response.
|
402 Payment Required
|
This response code is reserved for future use. Initial aim for creating this code was
using it for digital payment systems however this is not used currently.
Reserved for future use.
|
403 Forbidden
|
The server understood the request but refuses to authorize it.
The client does not have access rights to the content, i.e. they are unauthorized, so
server is rejecting to give proper response. Unlike 401, the client's identity is
known to the server.
|
404 Not
Found
|
The server can not find requested resource. In the browser, this means the URL is not
recognized. In an API, this can also mean that the endpoint is valid but the
resource itself does not exist.
Servers may also send this response instead of 403 to hide the existence of a
resource from an unauthorized client. This response code is probably the most famous
one due to its frequent occurence on the web.
|
405 Method
Not Allowed
|
The method received in the request-line is known by the origin server but not
supported by the target resource.
The request method is known by the server but has been disabled and cannot be used.
For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET
and HEAD, must never be disabled and should not return this error code.
|
406 Not
Acceptable
|
This response is sent when the web server, after performing server-driven content
negotiation, doesn't find any content following the criteria given by the user
agent.
The target resource does not have a current representation that would be acceptable
to the user agent, according to the proactive negotiation header fields received in
the request, and the server is unwilling to supply a default representation.
|
407 Proxy
Authentication Required
|
Similar to 401 Unauthorized, but it indicates that the client needs to authenticate
itself in order to use a proxy.
|
408 Request Timeout
|
This response is sent on an idle connection by some servers, even without any
previous request by the client. It means that the server would like to shut down
this unused connection.
This response is used much more since some browsers, like Chrome, Firefox 27+, or
IE9, use HTTP pre-connection mechanisms to speed up surfing. Also note that some
servers merely shut down the connection without sending this message.
|
409 Conflict
|
The request could not be completed due to a conflict with the current state of the
target resource. This code is used in situations where the user might be able to
resolve the conflict and resubmit the request.
This response is sent when a request conflicts with the current state of the server.
|
410 Gone
|
This response would be sent when the requested content has been permenantly deleted
from server, with no forwarding address. Clients are expected to remove their caches
and links to the resource.
The HTTP specification intends this status code to be used for "limited-time,
promotional services". APIs should not feel compelled to indicate resources that
have been deleted with this status code.
|
411 Length
Required
|
The server refuses to accept the request without a defined Content-Length.
Server rejected the request because the Content-Length header field is not defined
and the server requires it.
|
412 Precondition Failed
|
The client has indicated preconditions in its headers which the server does not meet.
One or more conditions given in the request header fields evaluated to false when
tested on the server.
|
413 Payload Too Large
|
The server is refusing to process a request because the request payload is larger
than the server is willing or able to process.
Request entity is larger than limits defined by server; the server might close the
connection or return an Retry-After header field.
|
414 Request-URI Too Long
|
The URI requested by the client is longer than the server is willing to interpret.
The server is refusing to service the request because the request-target is longer
than the server is willing to interpret.
|
415 Unsupported Media Type
|
The origin server is refusing to service the request because the payload is in a
format not supported by this method on the target resource.
The media format of the requested data is not supported by the server, so the server
is rejecting the request.
|
416 Requested Range Not Satisfiable
|
The range specified by the Range header field in the request can't be fulfilled; it's
possible that the range is outside the size of the target URI's data.
None of the ranges in the request's Range header field1 overlap the current extent of
the selected resource or that the set of ranges requested has been rejected due to
invalid ranges or an excessive request of small or overlapping ranges.
|
417 Expectation Failed
|
The expectation given in the request's Expect header field could not be met by at
least one of the inbound servers.
This response code means the expectation indicated by the Expect request header field
can't be met by the server.
|
418 I'm a
teapot
|
The server refuses the attempt to brew coffee with a teapot.
Any attempt to brew coffee with a teapot should result in the error code "418 I'm a
teapot". The resulting entity body MAY be short and stout.
|
421 Misdirected Request
|
The request was directed at a server that is not able to produce a response. This can
be sent by a server that is not configured to produce responses for the combination
of scheme and authority that are included in the request URI.
|
422 Unprocessable Entity
|
The request was well-formed but was unable to be followed due to semantic errors.
The server understands the content type of the request entity (hence a 415
Unsupported Media Type status code is inappropriate), and the syntax of the request
entity is correct (thus a 400 Bad Request status code is inappropriate) but was
unable to process the contained instructions.
|
423 Locked
|
The source or destination resource of a method is locked.
|
424 Failed
Dependency
|
The request failed due to failure of a previous request.
The method could not be performed on the resource because the requested action
depended on another action and that action failed.
|
426 Upgrade Required
|
The 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.
|
428 Precondition Required
|
The origin server requires the request to be conditional. 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.
|
429 Too
Many Requests
|
The user has sent too many requests in a given amount of time ("rate limiting").
|
431 Request Header Fields Too Large
|
The server is unwilling to process the request because its header fields are too
large. The request MAY be resubmitted after reducing the size of the request header
fields.
|
444 Connection Closed Without Response
|
A non-standard status code used to instruct nginx to close the connection without
sending a response to the client, most commonly used to deny malicious or malformed
requests.
|
451 Unavailable For Legal Reasons
|
The user requests an illegal resource, such as a web page censored by a government.
The server is denying access to the resource as a consequence of a legal demand.
|
499 Client
Closed Request
|
A non-standard status code introduced by nginx for the case when a client closes the
connection while nginx is processing the request.
|