title: Does Django have exception for an immediate http response?
body: <p>Django-Tastypie has <code>ImmediateHttpResponse</code> exception which allow to return to the client an immediate response:</p>
  
  <pre><code>raise ImmediateHttpResponse(response='a message')
  </code></pre>
  
  <p>Django has <a href="https://docs.djangoproject.com/en/dev/topics/http/views/#the-http404-exception" rel="nofollow">Http404</a>, but i couldn't find a more universal exception like <code>ImmediateHttpResponse</code>.</p>
  
  <p>What technique do you use to return to client an immediate 400 response?</p>
  
  <p>For example having model:</p>
  
  <pre><code>class Subscriber(Model):
  
      def delete(self, *args, **kwargs):
          raise ImmediateHttpResponse('Deleting subcribers is not allowed!')
  </code></pre>
  
  <p>and trying to delete an object would return to the client a <code>400</code> response with the given message.</p>