eSIM error code.
Error Response
Authentication
A request is successfully accepted with an HTTP status code of 2xx. Otherwise, it indicates that something goes wrong with an HTTP status code of 4xx or 5xx.
A structured response body is returned when errors occur, here is an example of the response body for errors:
{
"code": 401,
"error": true,
"msg": "Unauthorized",
"success": false
}
After Pass Authentication
A request submit is successfully with a code of 0. Otherwise, it's a failure.
A structured response body is returned when errors occur, here is an example of the response body for errors:
{
"code": 101,
"data": null,
"msg": "Request is being processed, please retry shortly"
}
Error Object
code
REQUIRED. eSIM defines the error code.
msg
A human-readable representation of the error. It is intended as an aid to developers and is not suitable for exposure to end users.
data
Always null
Code List
| Code | Message |
|---|---|
| 101 | Request is being processed, please retry shortly |
| 102 | The server is busy. Please try again later |
| 400 | Query error |
| 501 | Account does not exist |
| 502 | Account is inactive |
| 503 | IP address is not allowed |
| 504 | Plans does not exist |
| 505 | Plan price is not available |
| 506 | Insufficient account balance or credit |
| 9999 | Unknown error |
