Every error answer from Thing Edges, from the app API and from the open API (IoT Core and the dashboard), carries a number in the
body as errorCode and in the X-Error-Code header. Match on the number, not on message, which can be
reworded. The list matches the app SDK’s constants.
Since December 2026, older codes (the 11xx request codes, 12xx user codes, 20xx
package codes, 500 and 5xxx system codes, 2126–2128, and the old license and device numbers) are
no longer sent.
- An error with a code of its own sends it: the
API_* codes below.
- Any other error sends its HTTP status as the code:
400, 401, 403, 404, 409 or 429. Other
4xx statuses send 400.
- Our own faults (any
5xx, or anything unexpected) send 600, with status 500.
- An HTTP code always equals the status of the answer it is in.
| Code |
Name |
Meaning |
| 400 |
HTTP_400_BAD_REQUEST |
The request is wrong: a missing or invalid field, header or query. message says which, and is a list when the body failed validation |
| 401 |
HTTP_401_UNAUTHORIZED |
Not signed in, or the credentials are not accepted |
| 403 |
HTTP_403_FORBIDDEN |
Signed in, but not allowed to do this |
| 404 |
HTTP_404_NOT_FOUND |
It does not exist, or the caller cannot see it |
| 409 |
HTTP_409_EXISTED |
It already exists, or someone else changed it meanwhile |
| 429 |
HTTP_429_TOO_MANY_REQUEST |
Too many requests; try again later |
| 600 |
HTTP_EXCEPTION |
Our fault. Safe to retry later |
| Code |
Name |
Meaning |
| 1001 |
API_AUTH_APIKEY_INVALID |
x-header-apikey is missing or not a valid key |
| 1002 |
API_AUTH_BEARER_MISSING |
No Authorization: Bearer header on a route that needs one |
| 1003 |
API_AUTH_PROJECT_INVALID |
The project is unknown, or not the caller’s |
| 1004 |
API_AUTH_TOKEN_INVALID |
The token is malformed, expired or failed verification |
| 1005 |
API_AUTH_PERMISSION_DENIED |
Authenticated, but not allowed to do this here |
| 1006 |
API_AUTH_USER_UNAUTHORIZED |
The token’s user may not act for this user |
| 1105 |
API_AUTH_IP_UNAUTHORIZED |
The caller’s IP is not in the project’s allowed list |
| 1107 |
API_AUTH_GRANT_TYPE_INVALID |
Unsupported OAuth grant_type |
| 1108 |
API_AUTH_CODE_INVALID |
The authorization code is wrong, used or expired |
| 1109 |
API_AUTH_PASSWORD_CONFIRM_MISMATCH |
The password and its confirmation differ |
| 1207 |
API_AUTH_CODE_NOT_FOUND |
No such verification or authorization code |
| Code |
Name |
Meaning |
| 2100 |
API_AUTH_CREDENTIALS_MISSING |
x-appkey / x-appsecret missing |
| 2101 |
API_AUTH_SDK_UNAUTHORIZED |
App key and secret are wrong |
| 2102 |
API_AUTH_INVALID_CREDENTIALS |
Sign-in failed. Also sent for an unknown account, so it cannot tell which accounts exist |
| 2103 |
API_AUTH_PHONE_INVALID |
The phone number is not a valid E.164 number |
| 2110 |
API_AUTH_ACCOUNT_NOT_FOUND |
No such account in this project |
| 2111 |
API_AUTH_ACCOUNT_EXISTS |
The account already exists: sign in instead |
| 2112 |
API_AUTH_ACCOUNT_NOT_VERIFIED |
The account was never verified: go to the code or email step |
| 2113 |
API_AUTH_ACCOUNT_ALREADY_VERIFIED |
Already verified; nothing to do |
| Code |
Name |
Meaning |
| 2120 |
API_AUTH_OTP_INVALID |
The code is wrong, or was sent for another purpose |
| 2121 |
API_AUTH_OTP_EXPIRED |
The code expired; ask for a new one |
| 2122 |
API_AUTH_OTP_COOLDOWN |
A new code was asked for too soon |
| 2123 |
API_AUTH_OTP_RATE_LIMITED |
Too many codes for this number; try later |
| 2124 |
API_AUTH_OTP_NOT_CONFIGURED |
The project has no SMS or Zalo delivery set up |
| 2125 |
API_AUTH_OTP_UNAVAILABLE |
Codes cannot be sent or checked right now |
| Code |
Name |
Meaning |
| 2304 |
API_LICENSE_TYPE_INVALID |
license is not a type this endpoint signs |
| 2305 |
API_LICENSE_IDENTITY_INVALID |
The mac or serial cannot carry a license |
| 2306 |
API_LICENSE_UNIT_NOT_FOUND |
No factory record for this device |
| 2307 |
API_LICENSE_KEY_UNAVAILABLE |
The partner’s signing key cannot be used. Report it |
| 2308 |
API_LICENSE_PARTNER_MISMATCH |
The device was made for another partner |
| Code |
Name |
Meaning |
| 2320 |
API_DEVICE_NOT_FOUND |
No such device, or the caller cannot see it |
| 2321 |
API_DEVICE_PARAM_INVALID |
A device field in the request is not valid |
| 2322 |
API_DEVICE_OWNED_BY_OTHER |
With lockOwner=1, another account holds the device. Nothing changed |