  
          try:
              instance = self.get_instance(**query_kwargs)
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
  
          instance.delete()
          return
  
  
 
</s> remove         return
 </s> add         return Response() </s> remove             raise ErrorResponse(status.HTTP_404_NOT_FOUND)
 </s> add             raise ErrorResponse(status=status.HTTP_404_NOT_FOUND) </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         return self.model_instance
 </s> add         return Response(self.model_instance) </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)
            raise ErrorResponse(status=status.HTTP_404_NOT_FOUND)
  
          try:
              instance = self.get_instance(**query_kwargs)
          except model.DoesNotExist:
            raise ErrorResponse(status=status.HTTP_404_NOT_FOUND)
  
          instance.delete()
          return
  
  
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/mixins.py