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: