      {'detail': 'You do not have permission to access this resource. ' +
                 'You may need to login or otherwise authenticate the request.'})
  
  _503_SERVICE_UNAVAILABLE = ErrorResponse(
      status.HTTP_503_SERVICE_UNAVAILABLE,
      {'detail': 'request was throttled'})
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
 
</s> remove     status.HTTP_403_FORBIDDEN,
    {'detail': 'You do not have permission to access this resource. ' +
               'You may need to login or otherwise authenticate the request.'})
 </s> add     content={'detail': 'You do not have permission to access this resource. ' +
               'You may need to login or otherwise authenticate the request.'},
    status=status.HTTP_403_FORBIDDEN) </s> remove         raise ErrorResponse(status.HTTP_405_METHOD_NOT_ALLOWED,
                            {'detail': 'Method \'%s\' not allowed on this resource.' % request.method})
 </s> add         raise ErrorResponse(content=
                {'detail': 'Method \'%s\' not allowed on this resource.' % request.method},
            status=status.HTTP_405_METHOD_NOT_ALLOWED) </s> remove     def __init__(self, status=200, content=None, headers=None):
        self.status = status
        self.media_type = None
 </s> add     _ACCEPT_QUERY_PARAM = '_accept'        # Allow override of Accept header in URL query params
    _IGNORE_IE_ACCEPT_HEADER = True

    def __init__(self, content=None, status=None, request=None, renderers=None):
        """
        content is the raw content.

        The set of renderers that the response can handle.

        Should be a tuple/list of classes as described in the :mod:`renderers` module.
        """
        # First argument taken by `SimpleTemplateResponse.__init__` is template_name,
        # which we don't need
        super(Response, self).__init__(None, status=status)
        # We need to store our content in raw content to avoid overriding HttpResponse's
        # `content` property
        self.raw_content = content  </s> remove             raise ErrorResponse(status.HTTP_404_NOT_FOUND,
                                {'detail': 'That page contains no results'})
 </s> add             raise ErrorResponse(
                content={'detail': 'That page contains no results'},
                status=status.HTTP_404_NOT_FOUND) </s> remove         Hook for any code that needs to run prior to anything else.
 </s> add         Returns an `HttpRequest`. This method is a hook for any code that needs to run
        prior to anything else.
    content={'detail': 'request was throttled'},
    status=status.HTTP_503_SERVICE_UNAVAILABLE)
      {'detail': 'You do not have permission to access this resource. ' +
                 'You may need to login or otherwise authenticate the request.'})
  
  _503_SERVICE_UNAVAILABLE = ErrorResponse(
    content={'detail': 'request was throttled'},
    status=status.HTTP_503_SERVICE_UNAVAILABLE)
    content={'detail': 'request was throttled'},
    status=status.HTTP_503_SERVICE_UNAVAILABLE)
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
keep keep keep keep replace replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/permissions.py