| 配置项 | 范围 | 说明 |
|---|---|---|
AutomaticDisableStatusCodeRanges | [401, 401] | 渠道返回 401 时自动禁用 |
| 配置项 | 范围 | 说明 |
|---|---|---|
AutomaticRetryStatusCodeRanges | 100-199, 300-399, 401-407, 409-499, 500-503, 505-523, 525-599 | 遇到这些状态码时自动重试 |
| 配置项 | 值 | 说明 |
|---|---|---|
alwaysSkipRetryStatusCodes | 504, 524 | 504 Gateway Timeout、524 Gateway Timeout 跳过重试 |
alwaysSkipRetryCodes | ErrorCodeBadResponseBody | 错误响应体时跳过重试 |
| 状态码 | 说明 | 常见场景 |
|---|---|---|
| 200 | OK | 请求成功 |
| 400 | Bad Request | 无效请求、错误请求体 |
| 401 | Unauthorized | 未授权、Token 无效 |
| 403 | Forbidden | 访问被拒绝 |
| 404 | Not Found | 资源不存在、模型未找到 |
| 429 | Too Many Requests | 请求过于频繁、配额不足 |
| 500 | Internal Server Error | 服务器内部错误 |
| 502 | Bad Gateway | 网关错误 |
| 503 | Service Unavailable | 服务不可用 |
| 504 | Gateway Timeout | 网关超时 |