Error Code
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. When an API call fails, HTTPS status code 4xx or 5xx is returned. The returned message body contains a specific error code and error message. If you fail to locate the cause of the error, contact HUAWEI CLOUD customer service and provide the error code for troubleshooting.
Format of an Error Response Body
If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.
{
"error_msg": "The format of message is error",
"error_code": "AS.0001"
} In the response body, error_code is an error code, and error_msg provides information about the error.
Error Code
Table 1 describes error codes of NLP. For the error codes of ModelArts, see Error Code.
| Status Code | Error Code | Error Message | Solution |
|---|---|---|---|
| 401 | NLP.0000 | You do not have the OBT permission. | Apply for open beta test permission according to the prompts. |
| 401 | NLP.0101 | Authentication failed. | Correct the token ID and try again. |
| 401 | NLP.0102 | Authentication information is missing. | Correct the authentication information and try again. |
| 401 | NLP.0103 | Failed to obtain the authentication information. | Correct the token ID and try again. |
| 401 | NLP.0104 | Failed to connect to the IAM server. | Contact the IAM service administrator. |
| 401 | NLP.0105 | The account balance is insufficient or the account is in arrears. | Top up the account as soon as possible. |
| 400 | NLP.0301 | Request parameter error occurs. | Correct the field names in the request parameters and try again. |
| 400 | NLP.0302 | The request parameter is incorrect or empty. | Correct the request parameter settings and try again. |
| 400 | NLP.0303 | The HTTP request method is not supported. | Check the request mode, correct the request, and try again. |
| 400 | NLP.0304 | Failed to read HTTP message. | Check the request format, correct the request, and try again. |
| 400 | NLP.0305 | The HTTP media mode is not supported. | Check the media mode of the request, correct the request, and try again. |
| 500 | NLP.0306 | The HTTP request timed out. | Service backend error. Please contact technical support. |
| 500 | NLP.0201 | The internal service is abnormal. | Service backend error. Please contact technical support. |
| 500 | NLP.0401 | The OBS Client is empty. | Service backend error. Please contact technical support. |
| 500 | NLP.0402 | Failed to close the OBS Client. | Service backend error. Please contact technical support. |
| 500 | NLP.0403 | Failed to upload files to OBS. | Service backend error. Please contact technical support. |
| 500 | NLP.0404 | Failed to access OBS. | Service backend error. Please contact technical support. |
| 500 | NLP.0405 | Failed to download files from OBS. | Service backend error. Please contact technical support. |
| 500 | NLP.1101 | Failed to deliver the service. | Service backend error. Please contact technical support. |
| 500 | NLP.1102 | Parameter parsing error returned by the service. | Service backend error. Please contact technical support. |
| 500 | NLP.1201 | Failed to buy a package. | Service backend error. Please contact technical support. |
| 400 | NLP.1202 | The product cannot be subscribed to. | The product cannot be subscribed to currently. Please subscribe to another product. |
| 400 | NLP.1203 | The account is in arrears. | Top up the account and try again. |
| 500 | NLP.2101 | Word segmentation internal error. | Service backend error. Please contact technical support. |
| 500 | NLP.2201 | NER internal error. | Service backend error. Please contact technical support. |
| 500 | NLP.3102 | Failed to load the file. | Service backend error. Please contact technical support. |
| 400 | NLP.3201 | Incorrect parameter. | Service backend error. Please contact technical support. |
| 500 | NLP.3202 | Failed to parse the template. | Service backend error. Please contact technical support. |
| 500 | NLP.3203 | Incorrect formula. | Service backend error. Please contact technical support. |
| 500 | NLP.3204 | The template resource does not exist. | Service backend error. Please contact technical support. |
| 500 | NLP.4101 | The file is empty or does not exist. | Service backend error. Please contact technical support. |
| 500 | NLP.4201 | An exception occurred when calling internal services of LU. | Service backend error. Please contact technical support. |
| 500 | NLP.4302 | An error occurred during internal data parsing. | Service backend error. Please contact technical support. |
| 500 | NLP.5101 | Failed to load Word2vec. | Service backend error. Please contact technical support. |
| 500 | NLP.5102 | The format of Word2vec is incorrect. | Service backend error. Please contact technical support. |
| 400 | NLP.5301 | The text domain to be analyzed is not in the specified domain range. | Check the domain field in the request. |
| 500 | NLP.6101 | Internal error in the MT service. | Contact the service administrator. |
| 400 | NLP.6201 | The translation direction or scenario is not supported. | Check whether the target language, source language or translation scenario is supported. |
| 400 | NLP.6202 | Failed to recognize the language type. | Check whether the language type of the input text is correct. |
| 500 | NLP.6203 | Failed to translate. | Check whether the target text is correct. |
| 400 | NLP.6301 | The character length is too long. | Check that the length of the source text is less than 1,000 characters. |
| 400 | NLP.6302 | Access volume reaches the upper limit. | Try again later. |
| 400 | NLP.6303 | Failed to obtain files from the OBS bucket. | Check whether the OBS bucket is in the public-read status. |
| 400 | NLP.6304 | The job does not exist. | Check whether the entered job ID is incorrect or the job has expired. |
| 400 | NLP.6305 | The document format is not supported. | Check whether the document format is correct in the type field. |
| 400 | NLP.6306 | Invalid file. | Check whether the file is empty or the file size is 0 byte. |
| 400 | NLP.6307 | The number of document pages exceeds the upper limit. | Reduce the number of pages in the document. The upper limit is 250. |
| 500 | NLP.6308 | The job timed out. | Try again. |
| 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 | Invalid token. | Invalid 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.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's resources. For details about the account restriction reason, see My Account FAQ in Help Center. |
| 400 | ModelArts.4107 | An exception occurred when obtaining the temporary AK/SK. | An exception occurred when obtaining the temporary AK/SK. Please 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 | Access permission is unavailable. | Access permission is unavailable. Check the access permission. |
| 400 | ModelArts.4204 | The API is not subscribed to. | The API is not subscribed to. Subscribe to the API. If the service has been enabled, check whether the region (or account) where the service is enabled is the same as the region (or account) where the service is called. If they are the same, check whether the URL of the API is spelled correctly. |
| 400 | ModelArts.4601 | The external URL is invalid. | The external URL is invalid. Check the format of the entered download address. |
| 400 | ModelArts.4603 | Failed to download files from the external URL. | Failed to download files from the external URL. Check the network and URL. |
| 400 | ModelArts.4702 | Failed to query the OBS agency. | Failed to query the OBS agency. 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 OBS URL. |
| 400 | ModelArts.4704 | Failed to obtain the OBS file. | Failed to obtain the OBS file. Check the OBS file. |
| 400 | ModelArts.4705 | The OBS file is oversized. | The OBS file is oversized. Check the size of the OBS file and ensure that the file does not exceed the size limit. |
| 400 | ModelArts.4706 | The OBS file does not exist. | The OBS file does not exist. Check whether the corresponding file exists. |
Last Article: Status Code
Next Article: Obtaining a Project ID
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.