Ticket #16746: django-all-reason-phrases.patch
File django-all-reason-phrases.patch, 1.4 KB (added by , 13 years ago) |
---|
-
django/core/handlers/wsgi.py
16 16 logger = getLogger('django.request') 17 17 18 18 19 # See http://www. w3.org/Protocols/rfc2616/rfc2616-sec10.html19 # See http://www.iana.org/assignments/http-status-codes 20 20 STATUS_CODE_TEXT = { 21 21 100: 'CONTINUE', 22 22 101: 'SWITCHING PROTOCOLS', 23 102: 'PROCESSING', 23 24 200: 'OK', 24 25 201: 'CREATED', 25 26 202: 'ACCEPTED', … … 27 28 204: 'NO CONTENT', 28 29 205: 'RESET CONTENT', 29 30 206: 'PARTIAL CONTENT', 31 207: 'MULTI-STATUS', 32 208: 'ALREADY REPORTED', 33 226: 'IM USED', 30 34 300: 'MULTIPLE CHOICES', 31 35 301: 'MOVED PERMANENTLY', 32 36 302: 'FOUND', … … 53 57 415: 'UNSUPPORTED MEDIA TYPE', 54 58 416: 'REQUESTED RANGE NOT SATISFIABLE', 55 59 417: 'EXPECTATION FAILED', 60 422: 'UNPROCESSABLE ENTITY', 61 423: 'LOCKED', 62 424: 'FAILED DEPENDENCY', 63 426: 'UPGRADE REQUIRED', 56 64 500: 'INTERNAL SERVER ERROR', 57 65 501: 'NOT IMPLEMENTED', 58 66 502: 'BAD GATEWAY', 59 67 503: 'SERVICE UNAVAILABLE', 60 68 504: 'GATEWAY TIMEOUT', 61 69 505: 'HTTP VERSION NOT SUPPORTED', 70 506: 'VARIANT ALSO NEGOTIATES', 71 507: 'INSUFFICIENT STORAGE', 72 508: 'LOOP DETECTED', 73 510: 'NOT EXTENDED', 62 74 } 63 75 64 76 class LimitedStream(object):