The format of the response is as follows:
version SP status-code SP reason-phrase CRLF
[Content-Type: media-type CRLF]
[(Content-Length: uint) / (Transfer-Encoding: encoding) CRLF]
*(header-field CRLF)
CRLF
[payload / status-report]
Table 8.9.3-1 shows some common status codes corresponding to this transaction. See also Section 8.5 for additional status codes.
Table 8.9.3-1. Status Code Meaning
Status
|
Code
|
Meaning
|
Success
|
200 (OK)
|
All Instances were successfully retrieved.
|
304 (Not Modified)
|
The user agent's current representation is up to date, so no payload was returned. This status code shall only be returned for a conditional request containing an If-None-Match Header Field.
|
Failure
|
400 (Bad Request)
|
There was a problem with the request.
|
8.9.3.1.1 Response Header Fields
Table 8.9.3-2. Response Header Fields
Name
|
Value
|
Origin Server Usage
|
Description
|
Content-Type
|
media-type
|
M
|
The media-type of the payload
|
Content-Length
|
uint
|
C
|
Shall be present if a transfer encoding has not been applied to the payload
|
Transfer-Encoding
|
encoding
|
C
|
Shall be present if a transfer encoding has been applied to the payload
|
See also Section 8.4.