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:
Malcolm Tredinnick 2007-03-30 06:48:19 +00:00
parent 3c6609ac0c
commit 6a643b03d7
1 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,9 @@ class HttpResponsePermanentRedirect(HttpResponse):
class HttpResponseNotModified(HttpResponse):
status_code = 304
class HttpResponseBadRequest(HttpResponse):
status_code = 400
class HttpResponseNotFound(HttpResponse):
status_code = 404