6 (Response).
, HTTP .
Response = Status-Line ; 6.1
*( general-header ; 4.5
| response-header ; 6.2
| entity-header ) ; 7.1
CRLF
[ message-body ] ; 7.2
6.1 (Status-Line).
- (Status-Line). (HTTP-Version), (Status-Code) (Reason-Phrase), SP. CR LF Status-Line, CRLF.
Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
6.1.1 .
(Status-Code) - . 10. (Reason-Phrase) . (Status-Code) , . (Reason-Phrase).
. . 5 :
- 1xx: - , .
- 2xx: - , .
- 3xx: - .
- 4xx: - .
- 5xx: - .
, HTTP/1.1, (Reason-Phrase) . (Reason-Phrase), , .
Status-Code = "100" ; , Continue
| "101" ; , Switching Protocols
| "200" ; OK
| "201" ; , Created
| "202" ; , Accepted
| "203" ; , Non-Authoritative Information
| "204" ; , No Content
| "205" ; , Reset Content
| "206" ; , Partial Content
| "300" ; , Multiple Choices
| "301" ; , Moved Permanently
| "302" ; , Moved Temporarily
| "303" ; , See Other
| "304" ; , Not Modified
| "305" ; -, Use Proxy
| "400" ; , Bad Request
| "401" ; , Unauthorized
| "402" ; , Payment Required
| "403" ; , Forbidden
| "404" ; , Not Found
| "405" ; , Method Not Allowed
| "406" ; , Not Acceptable
| "407" ;
; -, Proxy Authentication Required
| "408" ; , Request Timeout
| "409" ; , Conflict
| "410" ; , Gone
| "411" ; , Length Required
| "412" ; , Precondition Failed
| "413" ; , Request Entity Too
; Large
| "414" ; URI , Request-URI Too Long
| "415" ; , Unsupported Media Type
| "500" ; , Internal Server Error
| "501" ; , Not Implemented
| "502" ; , Bad Gateway
| "503" ; , Service Unavailable
| "504" ; , Gateway Timeout
| "505" ; HTTP, HTTP Version Not
; Supported
| extension-code
extension-code = 3DIGIT
Reason-Phrase = *<TEXT CR, LF>
HTTP . HTTP , . , , , x00 , , . , 431, , - , 400. , , , , , .
6.2 .
(response-header fields) , , Status-Line. , Request-URI.
response-header = Age ; 14.6
| Location ; 14.30
| Proxy-Authenticate ; 14.33
| Public ; 14.35
| Retry-After ; 14.38
| Server ; 14.39
| Vary ; 14.43
| Warning ; 14.45
| WWW-Authenticate ; 14.46
(Response-header) . , (Response-header), (Response-header). (entity-header).
(Response-header) . , . .