  
  __all__ = ['Resource']
  
  
  class Resource(EmitterMixin, AuthMixin, RequestMixin, View):
      """Handles incoming requests and maps them to REST operations,
      performing authentication, input deserialization, input validation, output serialization."""
  
      # List of RESTful operations which may be performed on this resource.
      # These are going to get dropped at some point, the allowable methods will be defined simply by
 
</s> remove         On failure the ResponseException content is a dict which may contain 'errors' and 'field-errors' keys.
 </s> add         On failure the ErrorResponse content is a dict which may contain 'errors' and 'field-errors' keys. </s> remove # TODO: NoContent could be handled more cleanly.  It'd be nice if it was handled by default,
 </s> add # TODO: Maybe None could be handled more cleanly.  It'd be nice if it was handled by default, </s> remove __all__ =['NoContent', 'Response', ]



class NoContent(object):
    """Used to indicate no body in http response.
    (We cannot just use None, as that is a valid, serializable response object.)
    
    TODO: On reflection I'm going to get rid of this and just not support serialized 'None' responses.
    """
    pass
 </s> add __all__ =['Response', 'ErrorResponse'] </s> remove             raise ResponseException(status.HTTP_404_NOT_FOUND)
 </s> add             raise ErrorResponse(status.HTTP_404_NOT_FOUND) </s> remove         self.assertRaises(ResponseException, self.validator.validate, content)
 </s> add         self.assertRaises(ErrorResponse, self.validator.validate, content)
class Resource(RequestMixin, ResponseMixin, AuthMixin, View):
  
  __all__ = ['Resource']
  
  
class Resource(RequestMixin, ResponseMixin, AuthMixin, View):
      """Handles incoming requests and maps them to REST operations,
      performing authentication, input deserialization, input validation, output serialization."""
  
      # List of RESTful operations which may be performed on this resource.
      # These are going to get dropped at some point, the allowable methods will be defined simply by
keep keep keep keep replace keep keep keep keep keep
 Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 
djangorestframework/resource.py