Updated on 2024-11-04 GMT+08:00

Error Codes

Function

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

Response Body Format

STATUS CODE 400
{ 
        "error_code": "AIS.0005",
        "error_msg": "The service does not exist."
  }

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 response body contains the specific error code and information. If you fail to locate the cause of the error, contact Huawei Cloud customer service and provide the error code so that we can help you solve the problem as soon as possible.

If an error code starting with APIGW is returned after you call an API, rectify the fault by referring to the instructions provided in API Gateway Error Codes.

Status Code

Error Code

Error

Description

Handling Measure

400

AIS.0002

The authentication token is abnormal.

The authentication token is abnormal.

Check whether the token is correct.

400

AIS.0003

Failed to complete the request because of an internal service error.

Failed to complete the request because of an internal service error.

Contact HUAWEI CLOUD technical support and submit a service ticket.

400

AIS.0004

The request is unauthorized.

The request is unauthorized.

The service has not been subscribed to. For details about how to subscribe to a service, see Content Moderation Getting Started.

400

AIS.0005

The service does not exist.

The service does not exist.

Check whether the input service type or scenario is correct. If the fault persists, contact Huawei Cloud technical support by submitting a service ticket.

400

AIS.0007

The service has not been enabled yet.

The service has not been enabled yet.

Subscribe to the service. For details about how to subscribe to the service, see Subscribing to the Service.

400

AIS.0010

The header is missing or left empty.

The header is missing or left empty.

The HTTP request lacks mandatory header information. Check whether mandatory fields such as Content-type exist.

400

AIS.0011

Lack the request parameter, or the request parameter is empty.

The request parameter is missing or left empty.

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

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.0013

The request method is not allowed.

The request method is not allowed.

Check whether the request method is correct.

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.0015

Base64 decoding of the input data is incorrect.

Base64 decoding of the input data is incorrect.

The Base64 encoding of the image is incorrect. Check the Base64 content.

400

AIS.0020

The size of the request body exceeds the upper limit.

The size of the request body exceeds the upper limit.

Check the request body size.

400

AIS.0021

The requested file type is not supported.

The requested file type is not supported.

Check the type of the requested file.

400

AIS.0022

The URL is invalid.

The URL is invalid.

Check the URL format.

400

AIS.0023

The file stored in OBS is oversized.

The file stored in OBS is oversized.

Check whether the image format is supported by the service. For details, see Constraints.

400

AIS.0024

Failed to obtain the file from OBS.

Failed to obtain the file from OBS.

The signature has expired or fails to pass the authentication.

400

AIS.0025

The file stored in OBS is empty.

The file stored in OBS is empty.

Upload the file to OBS first.

400

AIS.0026

Incorrect token type.

Incorrect token type.

Use a token of the project type.

400

AIS.0027

The account has been frozen.

The account has been frozen.

Check whether the account is in arrears.

400

AIS.0028

The job is not owned by the current user.

The job is not owned by the current user.

Check the current account.

400

AIS.0029

Failed to download the file from the Internet.

Failed to download the file from the Internet.

Check whether the URL of the file is correct and supported.

400

AIS.0030

Job not found

Failed to find the job.

The task has expired and is cleared, or the job ID is incorrect. Check whether the job ID is correct.

400

AIS.0031

The maximum number of uncompleted jobs has been reached.

The maximum number of uncompleted jobs has been reached.

The submission of new jobs has been suspended.

400

AIS.0032

The monthly free calls have been used up.

The monthly free calls have been used up.

To continue to use the service, top up your Huawei Cloud account.

400

AIS.0501

Check whether the request JSON is abnormal.

Check whether the request JSON is abnormal.

The request body is not in JSON format.

400

AIS.0502

Check whether the Base64 encoding and URL of the image are correct.

Check whether the Base64 encoding and URL of the image are correct.

Check whether the Base64 encoding of the image is correct and whether the image format is supported by the service.

400

AIS.0504

The image size does not meet requirements.

The image size does not meet requirements.

Check whether the image size meets the service requirements.

400

AIS.0401

The input parameter is incorrect.

The input parameter is incorrect.

Enter a correct parameter.

400

AIS.0402

The image format is not supported.

The image format is not supported.

Check whether the image format is supported by the service.

400

AIS.0403

The image file has been damaged.

The image file has been damaged.

Upload the image again.

400

AIS.0404

An exception occurs in Content Moderation.

An exception occurs in Content Moderation.

Contact HUAWEI CLOUD technical support and submit a service ticket.

400

AIS.0405

An internal error occurs.

An internal error occurs.

Contact HUAWEI CLOUD technical support and submit a service ticket.

400

AIS.0039

Repetitive push stream.

Repeated stream push and moderation job creation

If the expected moderation result is not called back and a message is displayed indicating repeated stream push during the moderation job creation, you can close the moderation job and create another one for the stream.

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 input 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. For details about the domain name, see Regions and Endpoints.

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.

3. The AK/SK authentication fails. Check whether the AK/SK is correct and whether the account is restricted due to arrears.

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.

3. The AK/SK authentication fails. Check whether the AK/SK is correct and whether the account is restricted due to arrears.

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 and whether the account is in arrears.

400

APIG.0201

The request body is oversized.

The request body is oversized.

Check whether the request body is too large. For details, see Constraints.

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. If you have higher requirements on the request speed, submit a service ticket.

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 HUAWEI CLOUD technical support and submit a service ticket.

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. For details about how to subscribe to an API, see Subscribing to a Service. 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. For details, see Constraints.

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

Others

If other error codes are displayed, submit a service ticket.