Device-specific error (error)

The structure is used to describe errors that occur when processing a query about a specific device. For example, you can use this structure to describe an error that occurs when a socket or lamp fails to turn off.

Field Type Mandatory? Description
id string ✔︎ Device ID
code integer ✔︎ Error code. The following codes may be used:
  • 400 - query validation error
  • 401 – authorization error
  • 403 – token verification error
  • 500 – internal system error
  • 503 – server unavailable
message string ✔︎ Arbitrary error description
    "id": string,
    "code": integer,
    "message": integer