Agent 基础设施官方公告自动监测

AI Gateway - Standardize provider credential error responses in AI Gateway

Cloudflare AI Gateway updated its REST API to standardize provider credential error responses across AI providers to HTTP 401 with error code 2009.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Cloudflare AI Gateway has standardized error handling in its REST API ( POST /ai/run ) when an upstream AI provider rejects credentials. Previously, different providers returned varied error statuses: ElevenLabs returned HTTP 403 UserCredentialsError, Google Vertex returned HTTP 500 with upstream retries, and other providers yielded HTTP 402 or custom statuses. Under the new behavior, all rejected credentials across providers return HTTP 401 with error code 2009 (and Google Vertex requests now fail immediately without upstream retries). Additionally, credential rejections when using Unified Billing now return HTTP 503 instead of provider-specific authentication errors.

Agent 解析

可执行摘要

AI Gateway's POST /ai/run now standardizes rejected provider credential errors to HTTP 401 (error code 2009) across providers (Vertex no longer retries), and HTTP 503 for Unified Billing credential rejections.

Agent 实用度
96/100
可信度
90%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Update application error handling for AI Gateway's REST API ( POST /ai/run ) to interpret HTTP 401 with error code 2009 as an invalid or rejected provider credential.
  • Adjust error-handling logic for Unified Billing setups to handle HTTP 503 for rejected provider credentials instead of upstream authentication errors.
分类

标签与路由

cloudflareai-gatewaychangelog
相关信号

继续阅读