功能说明
如果返回结果中存在 Error 字段,则表示调用 API 接口失败。例如:
{
"Response": {
"Error": {
"Code": "AuthFailure.SignatureFailure",
"Message": "The provided credentials could not be validated. Please check your signature is correct."
},
"RequestId": "ed93f3cb-f35e-473f-b9f3-0d451b8b79c6"
}
}
Error 中的 Code 表示错误码,Message 表示该错误的具体信息。
错误码列表
公共错误码
错误码 | 说明 |
---|---|
ActionOffline | 接口已下线。 |
AuthFailure.InvalidAuthorization | 请求头部的 Authorization 不符合腾讯云标准。 |
AuthFailure.InvalidSecretId | 密钥非法(不是云 API 密钥类型)。 |
AuthFailure.MFAFailure | MFA 错误。 |
AuthFailure.SecretIdNotFound | 密钥不存在。请在 控制台 检查密钥是否已被删除或者禁用,如状态正常,请检查密钥是否填写正确,注意前后不得有空格。 |
AuthFailure.SignatureExpire | 签名过期。Timestamp 和服务器时间相差不得超过五分钟,请检查本地时间是否和标准时间同步。 |
AuthFailure.SignatureFailure | 签名错误。签名计算错误,请对照调用方式中的签名方法文档检查签名计算过程。 |
AuthFailure.TokenFailure | token 错误。 |
AuthFailure.UnauthorizedOperation | 请求未授权。请参考 CAM 文档对鉴权的说明。 |
DryRunOperation | DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。 |
FailedOperation | 操作失败。 |
InternalError | 内部错误。 |
InvalidAction | 接口不存在。 |
InvalidParameter | 参数错误(包括参数格式、类型等错误)。 |
InvalidParameterValue | 参数取值错误。 |
InvalidRequest | 请求 body 的 multipart 格式错误。 |
IpInBlacklist | IP 地址在黑名单中。 |
IpNotInWhitelist | IP 地址不在白名单中。 |
LimitExceeded | 超过配额限制。 |
MissingParameter | 缺少参数。 |
NoSuchProduct | 产品不存在 |
NoSuchVersion | 接口版本不存在。 |
RequestLimitExceeded | 请求的次数超过了频率限制。 |
RequestLimitExceeded.GlobalRegionUinLimitExceeded | 主账号超过频率限制。 |
RequestLimitExceeded.IPLimitExceeded | IP 限频。 |
RequestLimitExceeded.UinLimitExceeded | 主账号限频。 |
RequestSizeLimitExceeded | 请求包超过限制大小。 |
ResourceInUse | 资源被占用。 |
ResourceInsufficient | 资源不足。 |
ResourceNotFound | 资源不存在。 |
ResourceUnavailable | 资源不可用。 |
ResponseSizeLimitExceeded | 返回包超过限制大小。 |
ServiceUnavailable | 当前服务暂时不可用。 |
UnauthorizedOperation | 未授权操作。 |
UnknownParameter | 未知参数错误,用户多传未定义的参数会导致错误。 |
UnsupportedOperation | 操作不支持。 |
UnsupportedProtocol | http(s) 请求协议错误,只支持 GET 和 POST 请求。 |
UnsupportedRegion | 接口不支持所传地域。 |
业务错误码
错误码 | 说明 |
---|---|
AuthFailure | CAM签名/鉴权错误。 |
FailedOperation.Cls | 调用CLS服务失败 |
FailedOperation.FailedOperation | 操作失败。 |
FailedOperation.InternalError | 操作失败,内部错误。 |
FailedOperation.Resource | 超过购买实例的最大数量。 |
FailedOperation.Role | 获取临时密钥失败 |
FailedOperation.Vpc | 调用VPC服务失败 |
InternalError.CamNoAuth | 权限不足。 |
InternalError.CreateError | 创建内部错误。 |
InternalError.DecodeError | 解码错误。 |
InternalError.GetCredential | 获取凭证失败。 |
InternalError.GetRoleError | 角色获取错误。 |
InternalError.GovernanceFailure | 访问治理中心引擎内部错误。 |
InternalError.HttpStatusCodeError | 状态码错误。 |
InternalError.IOError | 内部服务调用异常。 |
InternalError.InternalError | 服务内部错误。 |
InternalError.OperationFailed | 操作失败。 |
InternalError.QueryError | 查询内部错误。 |
InternalError.TKEFailure | TKE相关操作失败。 |
InternalError.TagFailure | 标签操作失败。 |
InternalError.UnknownError | 未知错误。 |
InternalError.UpdateError | 更新内部错误。 |
InternalError.VPCFailure | 访问VPC内部错误。 |
InvalidParameterValue.Action | 旧实例不支持此操作。 |
InvalidParameterValue.BadRequestFormat | 请求格式不正确。 |
InvalidParameterValue.CreateError | 无效请求参数导致创建失败。 |
InvalidParameterValue.Description | 无效的描述信息。 |
InvalidParameterValue.GatewayId | 网关ID无效 |
InvalidParameterValue.InvalidParameterValue | 无效的参数值。 |
InvalidParameterValue.Name | 无效的名称。 |
InvalidParameterValue.OperationFailed | 无效请求参数导致操作失败。 |
InvalidParameterValue.QueryError | 无效请求参数,查询失败。 |
InvalidParameterValue.Region | 无效的Region。 |
InvalidParameterValue.ResourceAlreadyExist | 资源已经存在。 |
InvalidParameterValue.Specification | 网关规格参数内容错误 |
InvalidParameterValue.Type | 网关类型参数内容错误 |
InvalidParameterValue.UpdateError | 无效请求参数导致更新失败。 |
LimitExceeded.LBDomains | 网关证书域名总和超出限制 |
LimitExceeded.LimitExceeded | 参数超过限制。 |
MissingParameter.CreateError | 缺失参数导致创建失败。 |
MissingParameter.MissParameter | 缺少参数。 |
MissingParameter.UpdateError | 缺失参数导致更新失败。 |
OperationDenied | 操作被拒绝。 |
OperationDenied.OperationDenied | 不允许的操作。 |
ResourceInUse.GatewayServiceSourceExistService | 服务来源与服务关联。 |
ResourceInUse.InstancesExistedInService | 服务下存在实例,无法删除。 |
ResourceInUse.ServicesExistedInNamespace | 此命名空间下存在服务,无法删除。 |
ResourceNotFound.Forbidden | 资源不存在不允许操作。 |
ResourceNotFound.InstanceNotFound | 实例不存在。 |
ResourceNotFound.ResourceNotFound | 资源不存在。 |
UnauthorizedOperation.CamNoAuth | cam认证失败。 |
UnauthorizedOperation.CamPassRoleNotExist | 子账号缺少passRole权限。 |
UnauthorizedOperation.ClsNotActivated | 当前CLS产品未开通 |
UnauthorizedOperation.Uin | Uin未授权 |
UnauthorizedOperation.UnauthorizedOperation | 未授权的操作。 |