| 错误码变量 | 值 | 说明 |
|---|---|---|
ErrorCodeInvalidRequest | "invalid_request" | 无效请求 |
ErrorCodeJsonMarshalFailed | "json_marshal_failed" | JSON 序列化失败 |
ErrorCodeReadRequestBodyFailed | "read_request_body_failed" | 读取请求体失败 |
ErrorCodeBadRequestBody | "bad_request_body" | 错误请求体 |
ErrorCodeConvertRequestFailed | "convert_request_failed" | 转换请求失败 |
ErrorCodeAccessDenied | "access_denied" | 访问被拒绝 |
| 错误码变量 | 值 | 说明 |
|---|---|---|
ErrorCodeCountTokenFailed | "count_token_failed" | Token 计数失败 |
ErrorCodeInsufficientUserQuota | "insufficient_user_quota" | 用户配额不足 |
ErrorCodePreConsumeTokenQuotaFailed | "pre_consume_token_quota_failed" | 预消耗 Token 配额失败 |
| 错误码变量 | 值 | 说明 |
|---|---|---|
ErrorCodeModelPriceError | "model_price_error" | 模型价格错误 |
ErrorCodeModelNotFound | "model_not_found" | 模型未找到 |
ErrorCodeInvalidApiType | "invalid_api_type" | 无效 API 类型 |
| 错误码变量 | 值 | 说明 |
|---|---|---|
ErrorCodeGetChannelFailed | "get_channel_failed" | 获取渠道失败 |
ErrorCodeGenRelayInfoFailed | "gen_relay_info_failed" | 生成中继信息失败 |
ErrorCodeDoRequestFailed | "do_request_failed" | 请求执行失败 |
ErrorCodeChannelNoAvailableKey | "channel:no_available_key" | 渠道无可用密钥 |
ErrorCodeChannelParamOverrideInvalid | "channel:param_override_invalid" | 渠道参数覆盖无效 |
ErrorCodeChannelHeaderOverrideInvalid | "channel:header_override_invalid" | 渠道请求头覆盖无效 |
ErrorCodeChannelModelMappedError | "channel:model_mapped_error" | 渠道模型映射错误 |
ErrorCodeChannelAwsClientError | "channel:aws_client_error" | AWS 客户端错误 |
ErrorCodeChannelInvalidKey | "channel:invalid_key" | 渠道密钥无效 |
ErrorCodeChannelResponseTimeExceeded | "channel:response_time_exceeded" | 渠道响应超时 |
| 错误码变量 | 值 | 说明 |
|---|---|---|
ErrorCodeReadResponseBodyFailed | "read_response_body_failed" | 读取响应体失败 |
ErrorCodeBadResponseStatusCode | "bad_response_status_code" | 响应状态码错误 |
ErrorCodeBadResponse | "bad_response" | 错误响应 |
ErrorCodeBadResponseBody | "bad_response_body" | 错误响应体 |
ErrorCodeEmptyResponse | "empty_response" | 空响应 |
ErrorCodeAwsInvokeError | "aws_invoke_error" | AWS 调用错误 |
| 错误码变量 | 值 | 说明 |
|---|---|---|
ErrorCodeSensitiveWordsDetected | "sensitive_words_detected" | 敏感词检测 |
ErrorCodePromptBlocked | "prompt_blocked" | Prompt 被屏蔽 |
ErrorCodeViolationFeeGrokCSAM | "violation_fee.grok.csam" | Grok CSAM 违规费用 |
| 错误码变量 | 值 | 说明 |
|---|---|---|
ErrorCodeQueryDataError | "query_data_error" | 查询数据错误 |
ErrorCodeUpdateDataError | "update_data_error" | 更新数据错误 |