          """
          return self.renderers[0]
  
  
  class ErrorResponse(Response, BaseException):
      """
      An exception representing an Response that should be returned immediately.
      Any content should be serialized as-is, without being filtered.
      """
      pass
 
</s> remove     An exception representing an Response that should be returned immediately.
    Any content should be serialized as-is, without being filtered.
 </s> add     A subclass of :class:`Response` used to abort the current request handling. </s> remove         self.assertRaises(ErrorResponse, validator.validate_request, content, None)
 </s> add         self.assertRaises(ImmediateResponse, validator.validate_request, content, None) </s> remove # TODO: can't pass because view is a simple Django view and response is an ErrorResponse
#    def test_unsatisfiable_accept_header_on_request_returns_406_status(self):
#        """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response."""
#        resp = self.client.get('/', HTTP_ACCEPT='foo/bar')
#        self.assertEquals(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE)
 </s> add     @unittest.skip('can\'t pass because view is a simple Django view and response is an ImmediateResponse')
    def test_unsatisfiable_accept_header_on_request_returns_406_status(self):
        """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response."""
        resp = self.client.get('/', HTTP_ACCEPT='foo/bar')
        self.assertEquals(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE) </s> remove         self.assertRaises(ErrorResponse, self.validator.validate_request, content, None)
 </s> add         self.assertRaises(ImmediateResponse, self.validator.validate_request, content, None) </s> remove The :mod:`response` module provides Response classes you can use in your
views to return a certain HTTP response. Typically a response is *rendered*
into a HTTP response depending on what renderers are set on your view and
als depending on the accept header of the request.
 </s> add The :mod:`response` module provides :class:`Response` and :class:`ImmediateResponse` classes.

`Response` is a subclass of `HttpResponse`, and can be similarly instantiated and returned
from any view. It is a bit smarter than Django's `HttpResponse` though, for it knows how
to use :mod:`renderers` to automatically render its content to a serial format.
This is achieved by :

    - determining the accepted types by checking for an overload or an `Accept` header in the request
    - looking for a suitable renderer and using it on the content given at instantiation


`ImmediateResponse` is an exception that inherits from `Response`. It can be used
to abort the request handling (i.e. ``View.get``, ``View.put``, ...), 
and immediately returning a response.
class ImmediateResponse(Response, BaseException):
          """
          return self.renderers[0]
  
  
class ImmediateResponse(Response, BaseException):
      """
      An exception representing an Response that should be returned immediately.
      Any content should be serialized as-is, without being filtered.
      """
      pass
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/response.py