﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3875	Addition of HttpResponseBadRequest (HTTP Status code 400)	Scott Barr <scott@…>	Jacob	"The following is a patch to add a class called HttpResponseBadRequest to django.http

Purpose of this class is to provide a HTTP status code 400.

Index: django/http/__init__.py
===================================================================
--- django/http/__init__.py     (revision 4839)
+++ django/http/__init__.py     (working copy)
@@ -291,6 +291,11 @@
         HttpResponse.__init__(self, *args, **kwargs)
         self.status_code = 410
 
+class HttpResponseBadRequest(HttpResponse):
+    def __init__(self, *args, **kwargs):
+        HttpResponse.__init__(self, *args, **kwargs)
+        self.status_code = 400
+
 class HttpResponseServerError(HttpResponse):
     def __init__(self, *args, **kwargs):
         HttpResponse.__init__(self, *args, **kwargs)"		new	Uncategorized	dev			httpresponse bad request 400		Unreviewed	1	0	0	0	0	0
