Resource and Command Errors
The following error codes are returned during device queries, command submission, and command result lookup.
| HTTP Status | Business Code | Description |
|---|---|---|
| 400 | INVALID_REQUEST | Request parameters, body, or headers are invalid |
| 404 | DEVICE_NOT_FOUND | The device does not exist, or the current client is not allowed to access it |
| 404 | COMMAND_NOT_FOUND | The command does not exist, or the current client is not allowed to access it |
| 409 | IDEMPOTENCY_CONFLICT | The same Idempotency-Key was used with a different request body |
| 422 | COMMAND_REJECTED | The command format is valid but was rejected |
| 422 | DEVICE_OFFLINE | The device is currently offline and the command was not accepted |
| 503 | GATEWAY_UNAVAILABLE | The real-time link is temporarily unavailable |
| 504 | DEVICE_TIMEOUT | Waiting for device confirmation or refresh timed out |
Command Status Is Not an Error Code
The following values are used only in data.status and not as response code:
text
SENT
SUCCESS
FAILED
TIMEOUT