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 Sat Mar 15 08:18:50 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', }