Error Codes

Last updated: 2018-06-19 10:42:22

1. Common Error Code

The error code in the returned result indicates the result of user's call to a Cloud API. Code is a common error code that applies to the APIs of all modules. The code of 0 means the call succeeds. Other values means the call fails. If the call fails, the user can find out the cause of the error based on the following table and take appropriate actions.

Error Code Error Type Description
4000 Invalid request parameters The required parameters are missing, or the parameter values​are not in the correct format. For specific error message, see the error description "message" field.
4100 Authentication failed Signature authentication failed. Please refer to the Authentication section in the document.
4200 Request expired The request has expired. Please refer to the Request Validity Period section in the document.
4300 Access denied Account is blocked or not within the user range of the API.
4400 Quota is exceed The number of requests exceeds the quota. Please refer to the Request Quota section in the document.
4500 Replay attack The Nonce and Timestamp parameters can ensure that each request will be 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 2 hours.
4600 Protocol is not supported The protocol is not supported. Please refer to the relevant document.
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 specific error message, see the message field in error description. Try again later or contact customer service personnel for help.
5200 Failed to purchase resource The resource purchase failed. This is may be caused by unsupported instance configuration or insufficient resource.
5300 Failed to purchase resource The resource purchase failed because of insufficient balance.
5400 Part of operations performed successfully Part of batch operations have been performed successfully. For more details, see the returned value of method.
5500 User failed to pass identity verification The resource purchase failed because the user failed to pass identity verification.
6000 Internal error on server An internal error occurred on the server. Try again later or contact customer service personnel for help.
6100 Not supported by the version This API is not supported in this version or the API is under maintenance. Note: When this error occurs, first check whether the domain name of the API is correct. Different modules may have different domain names.
6200 API is unavailable temporarily The API is under maintenance and is unavailable. Please try again later.

2. Module Error Code

Message field indicates a module-related error.
Example:
"message": "(100004) projectId is incorrect"
It consists of two parts - the string within () indicates the module error code, and the string following () is the error description.
Different modules may produce different errors. The user can identify the cause of error based on error description.