  
          try:
              page_num = int(self.request.GET.get('page', '1'))
          except ValueError:
              raise ErrorResponse(
                  content={'detail': 'That page contains no results'},
                  status=status.HTTP_404_NOT_FOUND)
  
          if page_num not in paginator.page_range:
              raise ErrorResponse(
 
</s> remove             raise ErrorResponse(
 </s> add             raise ImmediateResponse( </s> remove             raise ErrorResponse(
 </s> add             raise ImmediateResponse( </s> remove                 raise ErrorResponse(
 </s> add                 raise ImmediateResponse( </s> remove             raise ErrorResponse(
 </s> add             raise ImmediateResponse( </s> remove _403_FORBIDDEN_RESPONSE = ErrorResponse(
 </s> add _403_FORBIDDEN_RESPONSE = ImmediateResponse(
            raise ImmediateResponse(
  
          try:
              page_num = int(self.request.GET.get('page', '1'))
          except ValueError:
            raise ImmediateResponse(
                  content={'detail': 'That page contains no results'},
                  status=status.HTTP_404_NOT_FOUND)
  
          if page_num not in paginator.page_range:
              raise ErrorResponse(
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/mixins.py