API Error Codes

This section describes all error codes returned when calling APIs fails. You are advised to press Ctrl+F to search for error codes on the page and find the required handling suggestions.
Solution for 404 Error
If a 404 message is returned when an API is called, check whether the application access address and URI (for details, see Development Preparation) are correct and whether they are combined into a complete request URL, for example, https://smsapi.ap-southeast-1.myhuaweicloud.com:443/sms/batchSendSms/v1.
Error Codes and Handling Suggestions
API calling error codes are generated when the SMS Sending API or Batch SMS Sending API is called. An example response is as follows:
Note: One response contains only one error code, and one mobile number corresponds to one status.
HTTP/1.1 200 OK Date: Mon, 06 Aug 2018 11:59:50 GMT Server: WebServer Content-Type: application/json;charset=UTF-8 Content-Length: 224 { "code":"000000", "description":"Success", "result": [{ "originTo":"+8618612345678", "createTime":"2018-08-06T11:59:50Z", "from":"1069031221280000001", "smsMsgId":"4b4b34e7-1a9e-42ac-b309-d10997148905_85496076", "status":"000000" }] }
Troubleshooting Based on the code Parameter
Value |
Description |
Handling Suggestion |
---|---|---|
000000 |
A request was sent successfully. |
API calling was successful. Wait for the SMS status report. |
E000000 |
The system is abnormal. Typically, this means SMS platform cannot parse the request format because the format is incorrect. |
|
E000001 |
Authorization is not contained in the HTTP header. |
|
E000002 |
realm is not contained in Authorization. |
Check whether the Authorization field contains the realm attribute. |
E000003 |
profile is not contained in Authorization. |
Check whether the Authorization field contains the profile attribute. |
E000004 |
The value of realm in Authorization must be SDP. |
Check whether the value of realm in the Authorization field is SDP. |
E000005 |
The value of profile in Authorization must be UsernameToken. |
Check whether the value of profile in the Authorization field is UsernameToken. |
E000006 |
The value of type in Authorization must be Appkey. |
Check whether the value of type in the Authorization field is Appkey. |
E000007 |
type is not contained in Authorization. |
Check whether the Authorization field contains the type attribute. |
E000008 |
WSSE is not contained in Authorization. |
Check whether the Authorization field contains WSSE. |
E000020 |
X-WSSE is not contained in the HTTP header. |
Check whether the HTTP message header contains the X-WSSE field. |
E000021 |
UserName is not contained in X-WSSE. |
Check whether the X-WSSE field contains the UserName attribute. |
E000022 |
Nonce is not contained in X-WSSE. |
Check whether the X-WSSE field contains the Nonce attribute. |
E000023 |
Created is not contained in X-WSSE. |
Check whether the X-WSSE field contains the Created attribute. |
E000024 |
PasswordDigest is not contained in X-WSSE. |
Check whether the X-WSSE field contains the PasswordDigest attribute. |
E000025 |
The format of Created is incorrect. |
Check whether the format of the Created attribute in the X-WSSE field is correct. |
E000026 |
UsernameToken is not contained in X-WSSE. |
Check whether the X-WSSE field contains the UsernameToken attribute. |
E000027 |
Invalid request. |
Check whether the parameters in the request are valid based on the parameter description and requirements in the API reference. |
E000040 |
The value of ContentType must be application/x-www-form-urlencoded. |
Check whether the value of the ContentType header field is application/x-www-form-urlencoded. To send SMSs, set ContentType to application/x-www-form-urlencoded. To send SMSs in batches, set ContentType to application/json. |
E000101 |
Authentication failed. |
Check whether the values of Authorization and X-WSSE are correct. |
E000102 |
app_key is invalid. |
Check whether app_key in the request is correct. If app_key is correct, check whether the application access address (obtained from the Application Management page on the console) is correct. |
E000103 |
app_key is unavailable. |
Contact the administrator to check whether the app_key status is normal. |
E000104 |
app_secret is invalid. |
Check whether app_secret in the request is correct. |
E000105 |
PasswordDigest is invalid. |
Check whether PasswordDigest in the request is correct. |
E000106 |
The app_key does not have the permission to call this API. |
Contact the administrator to check whether the application corresponding to the app_key supports SMS capability exposure. |
E000109 |
The user is deactivated. |
Contact the administrator to activate the user. |
E000110 |
The time exceeds the limit. |
When X-WSSE authentication is used, make sure that there is not too much difference between the time when the random string is generated and the local time when the request is sent. For details, contact the administrator. Check whether the local time of the server is correct. It is recommended that the difference between the local time of the server and the Beijing time be less than or equal to 8 hours. Check the code for the Created parameter that indicates the random number generation time. Take Java as example. Change YYYY in the format string to yyyy. For details, see SMS Sending API. |
E000111 |
Incorrect username or password. |
The user information corresponding to app_key cannot be found. Contact the administrator. |
E000112 |
The user is frozen. |
If the account is frozen due to arrears, top up the account by referring to Topping Up an Account (Prepaid Direct Customers). Then, the account is automatically unfrozen. If the account is frozen due to violation, modify the service and contact the operation manager to apply for account unfreezing. |
E000503 |
The parameter format is incorrect. |
Check the parameter format. Types of format errors are listed as follows. Handle the problem based on the returned error message.
|
E000510 |
The SMS fails to be sent. For details about the failure cause, see the status parameter. |
Rectify the fault based on #EN-US_TOPIC_0000001514194918/en-us_topic_0000001174513143_table839943952015 |
E000620 |
The peer application IP address is not in the whitelist. |
|
E000623 |
Number of SMSs sent reached the limit. |
Adjust limit values of the total number of SMSs sent by referring to Settings. The default limit value of the total number of SMSs sent per day is 500. The default limit value of the total number of SMSs sent per month is 10,000. You can submit a service ticket to increase the limit values. |
E000628 |
Countries or regions of the recipient numbers are not in the whitelist. |
Countries or regions of the recipient numbers are not added to the whitelist when you set the regional threshold, causing the SMS sending failure. Add countries or regions of the recipient numbers to the whitelist by referring to "Setting the Regional Threshold". |
Troubleshooting Based on the status Parameter
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.