diff -r 7ce22d0899e4 Doc/library/http.client.rst --- a/Doc/library/http.client.rst Fri Mar 14 21:54:41 2014 -0500 +++ b/Doc/library/http.client.rst Sun Mar 16 20:34:51 2014 -0600 @@ -228,6 +228,9 @@ | :const:`MULTI_STATUS` | ``207`` | WEBDAV `RFC 2518, Section 10.2 | | | | `_ | +------------------------------------------+---------+-----------------------------------------------------------------------+ +| :const:`ALREADY_REPORTED` | ``208`` | WEBDAV `RFC 5842, Section 7.1 | +| | | `_ | ++------------------------------------------+---------+-----------------------------------------------------------------------+ | :const:`IM_USED` | ``226`` | Delta encoding in HTTP, | | | | :rfc:`3229`, Section 10.4.1 | +------------------------------------------+---------+-----------------------------------------------------------------------+ @@ -259,6 +262,9 @@ | | | 10.3.8 | | | | `_ | +------------------------------------------+---------+-----------------------------------------------------------------------+ +| :const:`PERMANENT_REDIRECT` | ``308`` | `HTTP Status Code 308 Internet Draft | +| | | `_ | ++------------------------------------------+---------+-----------------------------------------------------------------------+ | :const:`BAD_REQUEST` | ``400`` | HTTP/1.1, `RFC 2616, Section | | | | 10.4.1 | | | | `_ | @@ -379,6 +385,9 @@ | :const:`INSUFFICIENT_STORAGE` | ``507`` | WEBDAV, `RFC 2518, Section 10.6 | | | | `_ | +------------------------------------------+---------+-----------------------------------------------------------------------+ +| :const:`LOOP_DETECTED` | ``508`` | WEBDAV `RFC 5842, Section 7.2 | +| | | `_ | ++------------------------------------------+---------+-----------------------------------------------------------------------+ | :const:`NOT_EXTENDED` | ``510`` | An HTTP Extension Framework, | | | | :rfc:`2774`, Section 7 | +------------------------------------------+---------+-----------------------------------------------------------------------+ diff -r 7ce22d0899e4 Lib/http/client.py --- a/Lib/http/client.py Fri Mar 14 21:54:41 2014 -0500 +++ b/Lib/http/client.py Sun Mar 16 20:34:51 2014 -0600 @@ -107,6 +107,7 @@ RESET_CONTENT = 205 PARTIAL_CONTENT = 206 MULTI_STATUS = 207 +ALREADY_REPORTED = 208 IM_USED = 226 # redirection @@ -117,6 +118,8 @@ NOT_MODIFIED = 304 USE_PROXY = 305 TEMPORARY_REDIRECT = 307 +PERMANENT_REDIRECT = 308 + # client error BAD_REQUEST = 400 @@ -153,6 +156,7 @@ GATEWAY_TIMEOUT = 504 HTTP_VERSION_NOT_SUPPORTED = 505 INSUFFICIENT_STORAGE = 507 +LOOP_DETECTED = 508 NOT_EXTENDED = 510 NETWORK_AUTHENTICATION_REQUIRED = 511 @@ -160,7 +164,8 @@ responses = { 100: 'Continue', 101: 'Switching Protocols', - + 102: 'Processing', + 200: 'OK', 201: 'Created', 202: 'Accepted', @@ -168,7 +173,10 @@ 204: 'No Content', 205: 'Reset Content', 206: 'Partial Content', - + 207: 'Multi-Status', + 208: 'Already Reported', + 226: 'IM Used', + 300: 'Multiple Choices', 301: 'Moved Permanently', 302: 'Found', @@ -177,6 +185,7 @@ 305: 'Use Proxy', 306: '(Unused)', 307: 'Temporary Redirect', + 308: 'Permanent Redirect', 400: 'Bad Request', 401: 'Unauthorized', @@ -196,6 +205,10 @@ 415: 'Unsupported Media Type', 416: 'Requested Range Not Satisfiable', 417: 'Expectation Failed', + 422: 'Unprocessable_Entity', + 423: 'Locked', + 424: 'Failed Dependency', + 426: 'Upgrade Required', 428: 'Precondition Required', 429: 'Too Many Requests', 431: 'Request Header Fields Too Large', @@ -206,6 +219,8 @@ 503: 'Service Unavailable', 504: 'Gateway Timeout', 505: 'HTTP Version Not Supported', + 507: 'Insufficient Storage', + 508: 'Loop Detected', 511: 'Network Authentication Required', }