From 6a643b03d7af5777c0729ee62d35a080158fc8af Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 30 Mar 2007 06:48:19 +0000 Subject: [PATCH] Fixed #3875 -- Added HttpResponseBadRequest. Thanks, Scott Barr. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4866 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/http/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/http/__init__.py b/django/http/__init__.py index eb28168260..ed2c128a16 100644 --- a/django/http/__init__.py +++ b/django/http/__init__.py @@ -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