描述:对应返回参数中最外层的Code和Message字段
Code | Message |
---|---|
0 | 成功 |
4001 | 参数错误(内含具体错误信息) |
4002 | 用量超限 |
4003 | 无效账户信息 |
4004 | 大于最大任务数,最多同时运行5个任务 |
4005 | 请求header信息缺失 |
5001 | 服务器错误 |
用户的请求由TOP网关转发给OpenApi,网关错误返回字段结构如下,
{ "ResponseMetadata": { "RequestId": "20211213140257010225133143062CC07B", "Action": "DescribeTemplateTask", "Version": "2021-09-01", "Service": "iccloud_muse", "Region": "cn-north-1", "Error": { "CodeN": 100007, "Code": "ServiceNotFound", "Message": "This service[iccloud_muse] not found." } } }
网关错误码说明如下:
Code | CodeN | Message | 备注 | Status |
---|---|---|---|---|
UndefinedError | 100001 | Undefined Internal Error. Pls Contact With Admin. | 一般不出现这个问题,这是系统开发兜底的错误提示 | 500 |
MissingParameter | 100002 | The request is missing %s parameter. | 关键参数缺失,例如Action, Version参数 | 400 |
MissingAuthenticationToken | 100003 | Request is missing Authentication Token | 缺少身份认证的必要信息,例如Auth信息 | 401 |
MissingRequestInfo | 100004 | The request is missing %s information. | 缺少请求必要信息,例如:Accesskey,service,region等 | 400 |
MissingSignature | 100005 | The request is missing signature. | 缺少签名结果 | 401 |
InvalidTimestamp | 100006 | The Signature of the request is expired | 请求过期或请求的签名时间来自未来 | 403 |
ServiceNotFound | 100007 | This service[%s] not found. | 请求的服务不存在 | 404 |
InvalidActionOrVersion | 100008 | Could not find operation %s for version %s | 请求接口不存在 | 404 |
InvalidAccessKey | 100009 | The accesskey [%s] included in the request is invalid. | 请求的AK不合法 | 401 |
SignatureDoesNotMatch | 100010 | The request signature we calculated does not match the signature you provided. Check your Secret Access Key and signing method. Consult the service documentation for details. | 签名结果不正确 | 401 |
ServiceShouldCallSelfApi | 100011 | The service(%s) should call self-api | 使用service aksk访问请求,仅能访问自己的接口和公共服务的接口。公共服务例如:iam | 403 |
LackPolicy | 100012 | Request was rejected because of lack of policy. | 子用户请求缺少权限(默认是deny的) | 403 |
AccessDenied | 100013 | User is not authorized to perform: %s on resource: %s | 子用户拥有的权限不支持当前操作 | 403 |
InternalError | 100014 | Service has some internal Error. Pls Contact With Admin | TOP自身内部错误,例如DB error。 | 500 |
FailToConnect | 100015 | Top Fail to Connect to Internal Service | 业务服务连接不上,这里的业务一般指具体的imagex、vod。 | 502 |
InternalServiceTimeout | 100016 | Internal Service is timeout. Pls Contact With Admin | 内部服务执行超时,请查看服务在TOP上配置的超时时间。 | 504 |
InnerApiNeedAccountInfo | 100017 | The inner request should have account info | Service aksk请求内部服务时缺少了账号信息 | 400 |
FlowLimitExceeded | 100018 | Request was rejected because the request speed of this openAPI is beyond the current flow control limit. | 请求过于频繁,超出了基本限速 | 429 |
ServiceUnavailableTemp | 100019 | Service is busy, please try again later. | 处于熔断状态的服务暂时不可访问,稍后重试 | 503 |
MethodNotAllowed | 100020 | HTTP Method Not Allowed | Http method不合法 | 405 |
LackProjectPolicy | 100021 | Request was rejected because of lack of project policy. | 请求需要验证Project的权限,当前Project权限验证不合法 | 403 |
InternalServiceError | 100023 | Service has some internal Error. Pls Contact With Admin. | 业务服务存在故障,这里的业务一般指具体的imagex、vod。故障不来自TOP | 502 |
InvalidAuthorization | 100024 | Invalid 'Authorization' header, Pls check authorization header. | Authorization头格式错误,检查Authorization。 | 400 |
InvalidCredential | 100025 | Invalid credential in 'Authorization', Pls check credential in authorization header. | Authorization头中的Credential格式错误,检查Credential | 400 |
InvalidSecretToken | 100026 | Invalid secret token, msg: %s. | 错误的STS or STS2,可能是多种错误,例如签名错误、过期等。 | 401 |