title: How to return HTTP 400 response in Django?
body: <p>I want to return a HTTP 400 response from my django view function if the request GET data is invalid and cannot be parsed.</p>
  
  <p>How do I do this? There does not seem to be a corresponding <code>Exception</code> class like there is for 404:</p>
  
  <pre><code>raise Http404
  </code></pre>