title: how to test django 400 bad request error for custom error page?
body: <p>How to test my custom error page for error 400 bad request in django</p>
  
  <p>views.py</p>
  
  <pre><code>class Custom400View(TemplateView):
     template_name = "400.html"
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code> handler400 = Custom400View.as_view()
  </code></pre>