          data = {'detail': _('Not found.')}
          return Response(data, status=status.HTTP_404_NOT_FOUND)
  
      elif isinstance(exc, PermissionDenied):
          data = {'detail': _('Permission denied.')}
          return Response(data, status=status.HTTP_403_FORBIDDEN)
  
      # Note: Unhandled exceptions will raise a 500 error.
      return None
  
 
</s> remove         data = {'detail': _('Not found.')}
 </s> add         msg = _('Not found.')
        data = {'detail': six.text_type(msg)} </s> remove         self.assertEqual(response.data, {'detail': 'Not found'})
 </s> add         self.assertEqual(response.data, {'detail': 'Not found.'}) </s> remove #### New pagination schemes.
 </s> add #### New schemes, including cursor pagination.
        msg = _('Permission denied.')
        data = {'detail': six.text_type(msg)}
          data = {'detail': _('Not found.')}
          return Response(data, status=status.HTTP_404_NOT_FOUND)
  
      elif isinstance(exc, PermissionDenied):
        msg = _('Permission denied.')
        data = {'detail': six.text_type(msg)}
          return Response(data, status=status.HTTP_403_FORBIDDEN)
  
      # Note: Unhandled exceptions will raise a 500 error.
      return None
  
keep keep keep keep replace keep keep keep keep keep
 Fix error text in test. 
rest_framework/views.py