Ticket #16746: django-webdav-reason-phrases.patch

File django-webdav-reason-phrases.patch, 1.1 KB (added by Vasiliy Faronov, 13 years ago)

Patch to add RFC 4918 reason phrases

  • django/core/handlers/wsgi.py

     
    1717
    1818
    1919# See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
     20# and http://tools.ietf.org/html/rfc4918#section-11
    2021STATUS_CODE_TEXT = {
    2122    100: 'CONTINUE',
    2223    101: 'SWITCHING PROTOCOLS',
     
    2728    204: 'NO CONTENT',
    2829    205: 'RESET CONTENT',
    2930    206: 'PARTIAL CONTENT',
     31    207: 'MULTI-STATUS',
    3032    300: 'MULTIPLE CHOICES',
    3133    301: 'MOVED PERMANENTLY',
    3234    302: 'FOUND',
     
    5355    415: 'UNSUPPORTED MEDIA TYPE',
    5456    416: 'REQUESTED RANGE NOT SATISFIABLE',
    5557    417: 'EXPECTATION FAILED',
     58    422: 'UNPROCESSABLE ENTITY',
     59    423: 'LOCKED',
     60    424: 'FAILED DEPENDENCY',
    5661    500: 'INTERNAL SERVER ERROR',
    5762    501: 'NOT IMPLEMENTED',
    5863    502: 'BAD GATEWAY',
    5964    503: 'SERVICE UNAVAILABLE',
    6065    504: 'GATEWAY TIMEOUT',
    6166    505: 'HTTP VERSION NOT SUPPORTED',
     67    507: 'INSUFFICIENT STORAGE'
    6268}
    6369
    6470class LimitedStream(object):
Back to Top