              raise ErrorResponse(status.HTTP_404_NOT_FOUND,
                                  {'detail': 'That page contains no results'})
  
          if page_num not in paginator.page_range:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND,
                                  {'detail': 'That page contains no results'})
  
          page = paginator.page(page_num)
  
          serialized_object_list = self._resource.filter_response(page.object_list)
          serialized_page_info = self.serialize_page_info(page)
 
</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             raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
 </s> add             raise ErrorResponse(status=status.HTTP_404_NOT_FOUND) </s> remove 
class Issue122Tests(TestCase):
    """
    Tests that covers #122.
    """
    urls = 'djangorestframework.tests.renderers'

    def test_only_html_renderer(self):
        """
        Test if no infinite recursion occurs.
        """
        resp = self.client.get('/html')
        
    def test_html_renderer_is_first(self):
        """
        Test if no infinite recursion occurs.
        """
        resp = self.client.get('/html1')
 </s> add  </s> remove         content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove         content = json.loads(response.content)
 </s> add         content = response.raw_content
            raise ErrorResponse(
                content={'detail': 'That page contains no results'},
                status=status.HTTP_404_NOT_FOUND)
              raise ErrorResponse(status.HTTP_404_NOT_FOUND,
                                  {'detail': 'That page contains no results'})
  
          if page_num not in paginator.page_range:
            raise ErrorResponse(
                content={'detail': 'That page contains no results'},
                status=status.HTTP_404_NOT_FOUND)
            raise ErrorResponse(
                content={'detail': 'That page contains no results'},
                status=status.HTTP_404_NOT_FOUND)
  
          page = paginator.page(page_num)
  
          serialized_object_list = self._resource.filter_response(page.object_list)
          serialized_page_info = self.serialize_page_info(page)
keep keep keep keep replace replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/mixins.py