title: Return httpresponse outside of post
body: <p>Is there a way to stop execution and return an httpresponse in a function other than post, get, put?</p>
  
  <p>So for example</p>
  
  <pre><code>class MyClass(View):
    def post(self, request, *args, **kwargs):
        test_some_things()
        do_some_other_stuff()
        return HttpResponse(..)
  
    def test_some_things(self):
        if test_fails:
            return HttpResponse(..)
        else:
            return 1
  </code></pre>
  
  <p>I want to be able to end execution if test_fails and just return the response. But the above doesn't seem to work...</p>