def METHOD_NAME(self, ticket, success):
    try:
        res = self.load(
            self.RESPOND_URL,
            post={
                "task_id": ticket,
                "key": self.config.get("passkey"),
                "cv": 1 if success else 0,
            },
        )
    except BadHeader as exc:
        self.log_error(self._("Could not send response"), exc)