Ticket #6349: HttpResponseUnauthorized.patch
File HttpResponseUnauthorized.patch, 929 bytes (added by , 17 years ago) |
---|
-
django/http/__init__.py
385 385 class HttpResponseBadRequest(HttpResponse): 386 386 status_code = 400 387 387 388 class HttpResponseUnauthorized(HttpResponse): 389 status_code = 401 390 388 391 class HttpResponseNotFound(HttpResponse): 389 392 status_code = 404 390 393 -
docs/request_response.txt
470 470 **New in Django development version.** 471 471 Acts just like ``HttpResponse`` but uses a 400 status code. 472 472 473 ``HttpResponseUnauthorized`` 474 Acts just like ``HttpResponse`` but uses a 401 status code. 475 473 476 ``HttpResponseNotFound`` 474 477 Acts just like ``HttpResponse`` but uses a 404 status code. 475 478