def METHOD_NAME(self, status: int, output: str, num_results: int) -> None:
    self.response.context.num_results = num_results
    self.response.status = status
    self.response.text = output
    self.response.content_type = self.content_type