From 483bfe386bb58e05383768e248767ffbdf860024 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Wed, 13 May 2026 14:49:53 -0700 Subject: [PATCH] Update error code --- .../agent_framework_foundry_hosting/_responses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py b/python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py index 2315198322..dbaa75e458 100644 --- a/python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py +++ b/python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py @@ -254,8 +254,8 @@ def _checkpoint_storage_for_context(root: str, context_id: str) -> FileCheckpoin # endregion Approval Storage # Foundry Toolbox Auth integration -# Consent-URL error code returned by the Foundry MCP gateway. -CONSENT_ERROR_CODE = -32006 +# Consent-URL error code returned by the Foundry MCP gateway when calling `/list` +CONSENT_ERROR_CODE = -32007 def is_consent_error(exc: BaseException) -> str | None: