The
following is a list of HyperText Transfer Protocol (HTTP) response status
codes. This includes codes from IETF internet standards as well as
unstandardised RFCs, other specifications and some additional commonly used
codes. The first digit of the status code specifies one of five classes of
response; the bare minimum for an HTTP client is that it recognises these five
classes. Microsoft IIS may use additional decimal sub-codes to provide more
specific information,but these are not listed here. The phrases used are the
standard examples, but any human-readable alternative can be provided. Unless
otherwise stated, the status code is part of the HTTP/1.1 standard.
1xx Informational
Request
received, continuing process.
This
class of status code indicates a provisional response, consisting only of the
Status-Line and optional headers, and is terminated by an empty line. Since
HTTP/1.0 did not define any 1xx status codes, servers must not send a 1xx
response to an HTTP/1.0 client except under experimental conditions.
100 Continue
This means that the server has received the
request headers, and that the client should proceed to send the request body
(in the case of a request for which a body needs to be sent; for example, a
POST request). If the request body is large, sending it to a server when a
request has already been rejected based upon inappropriate headers is
inefficient. To have a server check if the request could be accepted based on
the request's headers alone, a client must send Expect: 100-continue as a
header in its initial request and check if a 100 Continue status code is
received in response before continuing (or receive 417 Expectation Failed and
not continue).
101 Switching Protocols
This means the requester has asked the
server to switch protocols and the server is acknowledging that it will do so.
102
Processing (WebDAV) (RFC 2518)
As a WebDAV request may contain many
sub-requests involving file operations, it may take a long time to complete the
request. This code indicates that the server has received and is processing the
request, but no response is available yet. This prevents the client from timing
out and assuming the request was lost.
2xx Success
This
class of status codes indicates the action requested by the client was
received, understood, accepted and processed successfully.
200 OK
Standard response for successful HTTP
requests. The actual response will depend on the request method used. In a GET
request, the response will contain an entity corresponding to the requested
resource. In a POST request the response will contain an entity describing or
containing the result of the action.
201 Created
The request has been fulfilled and resulted
in a new resource being created.
202 Accepted
The request has been accepted for
processing, but the processing has not been completed. The request might or
might not eventually be acted upon, as it might be disallowed when processing
actually takes place.
203 Non-Authoritative Information
(since HTTP/1.1)
The server successfully processed the
request, but is returning information that may be from another source.
204 No Content
The server successfully processed the request,
but is not returning any content.
205 Reset Content
The server successfully processed the
request, but is not returning any content. Unlike a 204 response, this response
requires that the requester reset the document view.
206 Partial Content
The server is delivering only part of the
resource due to a range header sent by the client. The range header is used by
tools like wget to enable resuming of interrupted downloads, or split a
download into multiple simultaneous streams.
207 Multi-Status (WebDAV) (RFC
4918)
The message body that follows is an XML
message and can contain a number of separate response codes, depending on how
many sub-requests were made.
0 comments:
Post a Comment