Updated on 2026-06-03 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

Lack Header or Header %s is 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 %s 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 %s 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 %s is not allowed, allow is %s.

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 is out of the range %s.

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 on the OBS is oversized %s.

The file stored in OBS is oversized.

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

400

AIS.0024

Obtaining the file from the OBS failed. %s.

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

The token is domain scope, please use project scope.

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

Obtaining the file from out net failed.

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

Total number of unfinished jobs over limit %s.

The maximum number of uncompleted jobs has been reached.

The submission of new jobs has been suspended.

400

AIS.0041

The language is not supported.

The language is not supported.

Import a supported language. For details about the supported languages, see Table 3 Request body parameters.

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

The input parameter is incorrect.

The input parameter is incorrect.

Enter a correct parameter.

400

AIS.0405

An internal error occurs.

An internal error occurs.

Contact Huawei Cloud technical support and submit a service ticket.

400

AIS.0411

The image format is invalid.

Invalid image format.

Upload an image in the correct format.

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

AIS.0701

The video URL is invalid.

Invalid video URL.

Check whether the URL is valid.

400

AIS.0702

The video URL connects failed.

The video URL cannot be accessed.

Check whether the URL is accessible.

400

AIS.0703

The video size is unknown.

The video URL header does not contain the size.

Check whether the URL is valid.

400

AIS.0704

The video size must not exceed 300.0MB.

The video size exceeds 300 MB.

Check whether the size of the video file to be moderated is less than 300 MB.

400

AIS.0705

The video type is invalid.

Invalid video format.

Check whether the video to be moderated is in a format supported by Content Moderation.

400

AIS.0706

The video is corrupted.

The video file is corrupted.

Check whether the video file to be moderated is corrupted.

400

AIS.0708

The video downloads failed.

The video fails to be downloaded.

Check whether the URL is valid. If the URL is valid, contact Huawei Cloud technical support by submitting a service ticket.

400

AIS.0709

Video detection process occurred error: [Error message]

An error occurred during video moderation. The error message needs to be supplemented.

Contact Huawei Cloud technical support by submitting a service ticket.

400

AIS.0710

Invalid video length. It must be <= 2 hours. The input video duration is [%s].

The video duration exceeds 2 hours.

Check whether the duration of the video to be moderated is less than 2 hours.

400

AIS.0711

Invalid video resolution. Width and High must in [20,6000]

Invalid video resolution.

Check whether the resolution length and width of the video to be moderated are both from 20 to 6,000 pixels.

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

Request api error! The API is not subscribed.

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.