Error Codes

Last updated: 2019-05-07 10:27:02

Feature Description

You will receive a code indicating whether you successfully made a call to the API. 0 indicates that the call is successful and other values indicate that the call is failed. You might identify cause of the error from common error codes and take measures.
An example:

{
    "code": 5100
}

Error Codes

Error Code Description Reason
4000 Invalid request parameter. Required parameter is missing, or parameter value is in an incorrect format. For error message, see the "message" field in error description.
4100 Authentication failed The failed authentication is usually caused by signature computing error. See Signature Method section in the document.
4101 Unauthorized access to the API. The sub-account is not authorized by the main account to access the API. Contact the main account administrator to grant the permission for the API.
4102 Unauthorized access to the resource. The sub-account is not authorized by the main account to access the resource. Contact the main account administrator to grant the permission for the resource.
4103 Unauthorized access to the resource the current API is working with. The sub-account is not authorized by the main account to access the resource the current API is working with. Contact the main account administrator to grant the permission for the resource.
4104 Key does not exist. The key used for the request does not exist. Verify it and try again.
4105 Token error. Token error.
4106 MFA verification failed. MFA verification failed.
4110 Other CAM authentication failed. Other CAM authentication failed.
4300 Access denied. Account is blocked or is not within the user range for the API.
4400 Quota exceeded. The number of requests exceeded the quota limit. For more information, see the "Request Quota" section in the document.
4500 Replay attack The Nonce and Timestamp parameters can ensure that each request is executed only once on the server. Therefore, the Nonce value cannot be the same as last one, and the difference between Timestamp and Tencent server time cannot be greater than 5 minutes.
4600 Unsupported protocol. The protocol is not supported. The current API only supports HTTPS protocol and does not support HTTP protocol.
5000 Resource does not exist. The instance corresponding to resource ID does not exist, or the instance has been returned, or another user's resource is accessed.
5100 Resource operation failed. The operation performed on the resource failed. For error message, see the "message" field in error description. Try again later or contact customer service.
5200 Failed to purchase the resource. The resource purchase failed. This is may be caused by unsupported instance configuration or insufficient resource.
5300 Insufficient balance. User account has insufficient balance. Unable to purchase or upgrade the resource.
5400 The operation was successful on some resources. The batch operation was successful on some resources. For more information, see the returned value of the method.
5500 User failed to pass identity verification. Resource purchase failed because the user failed to pass identity verification.
6000 Internal error with the server. An internal error occurred with the server. Try again later or contact customer service.
6100 Not supported in the version. The API is not supported by this version or is under maintenance. Note: When this error occurs, first check whether the domain name of the API is correct. Domain name may vary between different modules.
6200 API is unavailable. The API is under maintenance and is unavailable. Please try again later.