def METHOD_NAME(self, status: int, output: str, num_results: int) -> Response:
    self.request.state.num_results = num_results
    return Response(output, status_code=status, media_type=self.content_type)