mirror of
https://github.com/django/django.git
synced 2025-12-11 11:50:49 +00:00
Fixed #3875 -- Added HttpResponseBadRequest. Thanks, Scott Barr.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3c6609ac0c
commit
6a643b03d7
1 changed files with 3 additions and 0 deletions
|
|
@ -272,6 +272,9 @@ class HttpResponsePermanentRedirect(HttpResponse):
|
||||||
class HttpResponseNotModified(HttpResponse):
|
class HttpResponseNotModified(HttpResponse):
|
||||||
status_code = 304
|
status_code = 304
|
||||||
|
|
||||||
|
class HttpResponseBadRequest(HttpResponse):
|
||||||
|
status_code = 400
|
||||||
|
|
||||||
class HttpResponseNotFound(HttpResponse):
|
class HttpResponseNotFound(HttpResponse):
|
||||||
status_code = 404
|
status_code = 404
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue