              if field_errors:
                  detail[u'field_errors'] = field_errors
  
          # Return HTTP 400 response (BAD REQUEST)
          raise ErrorResponse(content=detail, status=400)
  
      def get_form_class(self, method=None):
          """
          Returns the form class used to validate this resource.
          """
 
</s> remove         Return reason text corresponding to our HTTP response status code.
 </s> add         Returns reason text corresponding to our HTTP response status code. </s> remove     def __init__(self, view):
 </s> add     def __init__(self, view=None): </s> remove         raise ErrorResponse(content=
 </s> add         raise ImmediateResponse(content= </s> remove _503_SERVICE_UNAVAILABLE = ErrorResponse(
 </s> add _503_SERVICE_UNAVAILABLE = ImmediateResponse( </s> remove _403_FORBIDDEN_RESPONSE = ErrorResponse(
 </s> add _403_FORBIDDEN_RESPONSE = ImmediateResponse(
        raise ImmediateResponse(content=detail, status=400)
              if field_errors:
                  detail[u'field_errors'] = field_errors
  
          # Return HTTP 400 response (BAD REQUEST)
        raise ImmediateResponse(content=detail, status=400)
  
      def get_form_class(self, method=None):
          """
          Returns the form class used to validate this resource.
          """
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/resources.py