code: def error_response(self, exception):
          # type: (Exception) -> Tuple[Callback, Error]
          
          response = Error(id=self.id, message=exception)
          log.exception("Exception raised for request %s", self)
          return self.callback, response
docs: Create an Error Response object to signal an error