Updated on 2022-08-08 GMT+08:00

Error Codes

Function

A customized message is returned when errors occur in an extended API. This section describes error codes and their meanings.

Format of an Error Response Body

If an error occurs during API calling, the system returns an error code and message to you. The following shows the format of an error response body:

STATUS CODE 400
{
    "error_code": "AIS.0014",
    "error_msg": "The JSON format of the input data is incorrect."
}

Error Code Description

If an error occurs during API calling, no result is returned. You can locate the cause of an error using the error code of each API.

The returned message body contains a specific error code and error message.

Status Code

Error Code

Description

Description

Handling Measure

400

AIS.0012

The request parameter is not supported.

The request parameter is not supported.

Check whether the fields in the request are valid. For details, see the request description of the corresponding API.

400

AIS.0014

The JSON format of the input data is incorrect.

The JSON format of the input data is incorrect.

Check the JSON format of the input data.

400

AIS.0501

The input parameter is invalid.

The input parameter is invalid.

Check the parameter.

400

AIS.0502

The image format is not supported.

The image format is not supported.

Check whether the image format is supported.

400

AIS.0503

The image is damaged.

The image is damaged.

Check whether the image is damaged. If yes, re-upload an image file that meets the requirements.

400

AIS.0504

The image size does not meet requirements.

The image size does not meet requirements.

Check whether the image size meets requirements.

400

AIS.0505

Failed to run the algorithm.

Failed to run the algorithm.

Check the configuration. Contact technical support.

400

AIS.0506

An internal error occurred.

An internal error occurred.

Contact technical support.

400

APIG.0101

The API does not exist or has not been published.

The API does not exist or has not been published.

Check whether the entered API information is correct and whether the service is available in the corresponding region. Check whether the URL of the API is spelled correctly and whether the HTTP request method (such as POST and GET) is correct. Check whether the domain name and URI configured for service call are correct.

400

APIG.0301

1. Incorrect IAM authentication information: Failed to decrypt the token. Check whether the entered token is complete.

2. The validity period of a token is 24 hours. If the token expires, obtain a new token and pass it.

1. Incorrect IAM authentication information: Failed to decrypt the token. Check whether the entered token is complete.

2. The validity period of a token is 24 hours. If the token expires, obtain a new token and pass it.

decrypt token fail: The token request authentication information of x-auth-token in the HTTP request header is incorrect. Check the sent request and token.

token expires: The token expires. Obtain a new token and pass it.

verify aksk signature fail: Check whether the AK and SK are correct.

400

APIG.0201

The request body is oversized.

The request body is oversized.

Check whether the request body is oversized.

400

APIG.0308

The request is sent too fast and exceeds the default rate limit of the service.

The request is sent too fast and exceeds the default rate limit of the service.

The request is sent too fast and reaches the rate limit of the API. Reduce the request speed.

400

ModelArts.0203

Invalid token.

Invalid token.

Check whether the token is correct.

400

ModelArts.4101

The token is empty.

The token is empty.

The HTTP request header does not contain the token request authentication information of x-auth-token. Check the request.

400

ModelArts.4102

Failed to parse the token.

Failed to parse the token.

The token request authentication information of x-auth-token in the HTTP request header is incorrect. Check the sent request and token.

400

ModelArts.4103

The token is invalid.

The token is invalid.

The token request authentication information of x-auth-token in the HTTP request header is incorrect. Check the sent request and token.

400

ModelArts.4104

The length of the request body is invalid.

The length of the request body is invalid.

Check the request body length.

400

ModelArts.4105

The JSON format of the request body is incorrect.

The JSON format of the request body is incorrect.

Check the JSON format of the request body.

400

ModelArts.4106

The account is restricted.

The account is restricted.

Check the user resource status. For details about the account restriction reason, see the description of the account center.

400

ModelArts.4107

An exception occurred when obtaining the temporary AK/SK.

An exception occurred when obtaining the temporary AK/SK.

Contact technical support.

400

ModelArts.4201

The request URL does not contain the service ID.

The request URL does not contain the service ID.

Check the service ID in the request URL.

400

ModelArts.4202

The request URL format is invalid.

The request URL format is invalid.

Check the request URL format.

400

ModelArts.4203

No access permission.

No access permission.

Check the access permission.

400

ModelArts.4204

The API is not subscribed to.

The API is not subscribed to.

Subscribe to this API. If the service has been subscribed to, check whether the region where the service is subscribed to is the same as the region where the service is called. If the region is correct, check whether the URL of the API is spelled correctly and whether the HTTP request method (such as POST and GET) is correct.

400

ModelArts.4601

The external URL is invalid.

The external URL is invalid.

Check whether the entered URL is correct.

400

ModelArts.4603

The file failed to be downloaded from the external URL.

The file failed to be downloaded from the external URL.

Check whether the entered URL is correct.

400

ModelArts.4702

The OBS agency failed to be queried.

The OBS agency failed to be queried.

Check whether the OBS agency has been enabled for the service.

400

ModelArts.4703

The OBS URL is invalid.

The OBS URL is invalid.

Check the entered OBS URL.

400

ModelArts.4704

Failed to obtain the OBS file.

Failed to obtain the OBS file.

Failed to download the OBS file. Check whether the file exists.

400

ModelArts.4705

The OBS file is oversized.

The OBS file is oversized.

Use a file that meets the service size limit as the input.

400

ModelArts.4706

The OBS file does not exist.

The OBS file does not exist.

Failed to download the OBS file. Check whether the file exists.

400

Other

If other error codes are displayed, contact technical support.