错误体结构
最后更新:2026-11-14
网关自身拒绝:
{
"error": "model claude-sonnet-5 does not support the /responses endpoint",
"code": "model_endpoint_not_supported"
}
error:给人看的英文说明(直接面向客户端);code:稳定的机器可读原因码,见「错误码总表」。
请求体超限(code: body_too_large,HTTP 413)额外带 limit_bytes(本次上限字节数):
{
"error": "request body too large: it exceeds the 64 MB limit",
"code": "body_too_large",
"limit_bytes": 67108864
}
上游返回的错误按上游原格式透传(可能是 OpenAI/Anthropic/Gemini 各自的结构)。