| |

10 (Status Code Definitions).

, , ( ), , .

10.1 1xx - .

() , (Status-Line) , . HTTP/1.0 1xx , 1xx HTTP/1.0 , .

10.1.1 100 , Continue.

. , , , . , , . , .

10.1.2 101 , Switching Protocols.

, , Upgrade ( 14.41). , Upgrade , 101.

, . , HTTP , , .

10.2 2xx - .

, , , .

10.2.1 200 OK.

. , , . :

GET
, ;
HEAD
(entity-header), . (message-body) ;
POST
;
TRACE
, , .

10.2.2 201 , Created.

. URI ( ), ; URL Location. 201. , 202 (, Accepted) 201.

10.2.3 202 , Accepted.

, . , , . .

202 . , ( - , ) , . , , , .

10.2.4 203 , Non-Authoritative Information.

(entity-header) - , , , . , , . , , . , , 200 (OK).

10.2.5 204 , No Content.

, , . - , , . , , . (entity-headers), , .

204 , , , .

10.2.6 205 , Reset Content.

, , . , , , , , , . .

10.2.7 206 , Partial Content.

GET . Range ( 14.36), . Content-Range ( 14.17), , , (Content-Type) "multipart/byteranges", Content-Range . "multipart/byteranges" , Content-Length (OCTETs), (message-body).

, Range Content-Range 206.

10.3 3xx - .

, . , , GET HEAD. 5 , .

10.3.1 300 , Multiple Choices.

, . ( 12), , ( ) .

HEAD, , , . , Content-Type. , . , - .

( ), URL Location; Location . , .

10.3.2 301 , Moved Permanently.

URI, , URI. URI (Request-URI), , , . , .

URI - , URL Location. HEAD, ( ) URI.

301 , GET HEAD, , , .

: POST 301, HTTP/1.0 GET.

10.3.3 302 , Moved Temporarily.

URI. , URI (Request-URI) . Cache-Control Expires ( , ).

URI - , URL Location. HEAD, ( ) URI.

302 , GET HEAD, , , .

: POST 302, HTTP/1.0 GET.

10.3.4 303 , See Other.

URI , GET . , POST , . URI - , . 303 , () .

URI - , URL Location. HEAD, ( ) URI.

10.3.5 304 , Not Modified.

GET , , , , . .

:

GET (strong cache validator) ( 13.3.3), (entity-headers). ( , GET (weak validator)), ; (entity-bodies) .

304 , , .

304 , , , .

304 (message-body), , , .

10.3.6 305 -, Use Proxy.

-, Location. Location URL -. , -.

10.4 4xx - .

4xx , , , . HEAD, , , , . . .

: , , TCP, , (), , . , TCP (RST) , TCP , , , HTTP.

10.4.1 400 , Bad Request.

- malformed . .

10.4.2 401 , Unauthorized.

. WWW-Authenticate ( 14.46), (challenge), . Authorization ( 14.8). (Authorization credentials) Authorization, 401 , . 401 , , , , , relevant . HTTP 11.

10.4.3 402 , Payment Required.

.

10.4.4 403 , Forbidden.

, . (Authorization) , . HEAD , , . , , .

10.4.5 404 , Not Found.

, URI (Request-URI). .

, 403 (, Forbidden). 410 (, Gone) , , , .

10.4.6 405 , Method Not Allowed.

, (Request-Line) , URI (Request-URI). Allow, .

10.4.7 406 , Not Acceptable.

, , , (content characteristics), (accept headers), .

HEAD, , (locations), . , Content-Type. , . , .

: HTTP/1.1 , (accept headers), . , 406. , , . , , .

10.4.8 407 -, Proxy Authentication Required.

401 (, Unauthorized), , (authenticate) -. - Proxy-Authenticate ( 14.33), (challenge), - . Proxy-Authorization ( 14.34). HTTP 11.

10.4.9 408 , Request Timeout.

, . .

10.4.10 409 , Conflict.

- . , , . , . , ; , .

, , PUT. , , , , - ( ), 409, , . , , Content-Type.

10.4.11 410 , Gone.

, . . URI (Request-URI) . , , , 404 ( , Not Found). , .

410 , WWW, , , , . , , , . "" ("gone") - .

10.4.12 411 , Length Required.

Content-Length. , Content-Length, (message-body) .

10.4.13 412 , Precondition Failed.

, (request-header), . ( ) , , , , .

10.4.14 413 , Request Entity Too Large.

, , . , .

, Retry-After , .

10.4.15 414 URI , Request-URI Too Long.

, URI (Request-URI) , . , , , , POST GET , " " URL (, URL ), , , , URI (Request-URI).

10.4.16 415 , Unsupported Media Type.

, , .

10.5 5xx - .

, "5" , , . , HEAD, , , . . .

10.5.1 500 , Internal Server Error.

, .

10.5.2 501 , Not Implemented.

, . , .

10.5.3 502 , Bad Gateway.

, -, , .

10.5.4 503 , Service Unavailable.

- . , . , Retry-After. Retry-After , 500.

: 503 , , . .

10.5.5 504 , Gateway Timeout.

, -, , .

10.5.6 505 HTTP, HTTP Version Not Supported.

, , HTTP , . , , major , , 3.1, . , , , .


Copyright  ©  1998 Alex Simonoff (http://www.omsk.com/Leshik/), All Rights Reserved.


| |