mirror of https://github.com/django/django.git
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
|
@ -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…
Reference in New Issue