ym88659208ym87991671
Device-specific error (error) | Documentation SmartMarket
Skip to main content

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.

FieldTypeMandatory?Description
idstring✔︎Device ID
codeinteger✔︎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
messagestring✔︎Arbitrary error description
{
"id": string,
"code": integer,
"message": integer
}