Error Code
Last Updated:2020-07-20
The detailed error information is returned through Response Body in case of a request error, and the following format is followed:
| Parameter name | Type | Description |
| code | String | Error code |
| message | String | Error description |
| requestId | String | requestId of the current request |
Example:
{
"requestId" : "ae2225f7-1c2e-427a-a1ad-5413b762957d",
"code" : "NoSuchKey",
"message" : "The resource you requested does not exist"
}BCE Common Error Code
| Error return code | Error message | Status code | Description |
|---|---|---|---|
| AccessDenied | Access denied. | 403 Forbidden | No permission to access the corresponding resources |
| InappropriateJSON | The JSON you provided was well-formed and valid, but not appropriate for this operation. |
400 Bad Request |
The JSON format in request is correct, but does not meet the requirements semantically. such as lack of one necessary item or value type mismatch. . For the purpose of compatibility, all items that cannot be identified shall be neglected directly, and the error shall not be returned. |
| InternalError | We encountered an internal error. Please try again. |
500 Internal Server Error |
All other undefined errors When there is a clearly corresponding error of other types (including universal error and service defined error), it shall not be used. |
| InvalidAccessKeyId | The Access Key ID you provided does not exist in our records. | 403 Forbidden | Access Key ID does not exist. |
| InvalidHTTPAuthHeader | The Access Key ID you provided does not exist in our records. | 400 Bad Request | Authorization header is wrong in format. |
| InvalidHTTPRequest | There was an error in the body of your HTTP request. |
400 Bad Request |
The HTTP body format is wrong. E.g. inconformity with the designated Encoding etc. |
| InvalidURI | Could not parse the specified URI. | 400 Bad Request |
The URI format is incorrect, For example, some service defined keywords are not matched. For the problem of ID mismatching, a more specific error code shall be defined, e.g. NoSuchKey. |
| MalformedJSON | The JSON you provided was not well-formed. | 400 Bad Request | JSON format is illegal |
| InvalidVersion | The API version specified was invalid. | 404 Not Found | URI version number is illegal |
| OptInRequired | A subscription for the service is required. | 403 Forbidden | No corresponding service is enabled. |
| PreconditionFailed | The specified If-Match header doesn’t match the ETag header. | 412 Precondition Failed | For details, please see Etag. |
| RequestExpired | Request has expired. Timestamp date is <Data> . | 400 Bad Request | Request timeout Change to x-bce-date. If there is only Date in the request, Date needs to be converted into datetime. |
| IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. | 403 Forbidden | The API parameters corresponding to clientToken are non-identical. |
| SignatureDoesNotMatch | 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. |
400 Bad Request |
Signature and service end attached to Authorization header are inconsistent in verification. |
EIP Business Error Code
| Error code | Error description | HTTP status code | Semantics |
|---|---|---|---|
| InstanceNotFound | The specified instance does not exist. | 404 | The specified instance does not exist. |
| EipNotFound | The specified eip does not exist. | 404 | The specified eip does not exist. |
| InstanceAlreadyBind | The specified instance is already bound. | 400 | The specified instance is already bound. |
| UnsupportedEipOperation | The status of specified eip does not support this operation. | 400 | The status of specified EIP does not support this operation. |
| RealNameQualify | The login user is not pass identity qualify | 403 | The login user does not pass identity verification |
| ExceedLimit | The amount of eip exceed limit | 413 | The amount of EIP exceeds user quota limit |
| PrepayEip | The specified eip is prepay | 400 | The prepaid EIP is prohibited to be released via API |
| PayFailed | Pay failed when create EIP | 400 | Payment failed when creating EIP |
Error Code of Shared Bandwidth Service
| Error code | Err description | HTTP status code | Semantics |
|---|---|---|---|
| InstanceNotFound | The specified instance does not exist. | 404 | The specified instance does not exist. |
| UnsupportedInstanceOperation | The status of specified instance does not support this operation. | 400 | The status of specified instance does not support this operation. |
| RealNameQualify | The login user is not pass identity qualify. | 403 | The current user has not passed the identity verification |
| ExceedEIPGroupLimit | The amount of eip group exceed limit. | 413 | The amount of shared bandwidth exceeds user quota limit |
| EIPGroupPayFailed | Pay failed when create eip group. | 400 | Payment failed when creating shared bandwidth |
| ExceedEIPLimitInGroup | The amount of eip exceed the group bandwidth limit | 400 | The amount of EIP in shared bandwidth exceeds user quota limit |
Error Code of Bandwidth Packet Service
| Error return code | Error message | HTTP status code | Description |
|---|---|---|---|
| TypeNotMatchError | The bandwidth-packet's binding type is not match the instance type. | 400 | The resource type bound to bandwidth-packet does not match the actual resource type. |
| BandwidthOverrun | The sum of bandwidth-packet and bandwidth of the bound bandwidth exceed the limit. | 400 | The sum of bandwidth of the bandwidth-packet and the bound bandwidth exceeds the limit. |
| InstanceProductPayTypeError | Bandwidth-packet bound resource payment method only supports prepaid. | 400 | Bandwidth-packet bound resource payment method only supports prepayment. |
| ResourceNotExit | The resource or instance of the bandwidth-packet is not exist or has been deleted. | 400 | The bandwidth-packet does not exist or is deleted. |
| RepeatBindingError | The bandwidth-packet is being repeated bound. | 400 | The resource to be bound has bound bandwidth-packet. |
| TimeFormatIllegal | Time format is illegal. | 400 | Time format is illegal. |
| TimeUnreasonableError | Time is not allowed. | 400 | Time is not in the allowed range. |
