Errors
Standard error format and common error cases returned by the API.
Error schema
All error responses follow the same structure.
| Field | Type | Description |
|---|---|---|
error | string | Short machine-readable error identifier |
message | string | Human-readable explanation |
status | integer | HTTP status code |
Examples
400 Bad Request
{ "error": "bad_request", "message": "Invalid request parameters.", "status": 400 }401 Unauthorized
{ "error": "unauthorized", "message": "Invalid or missing API key.", "status": 401 }403 Forbidden
{ "error": "forbidden", "message": "Action not allowed for this API key.", "status": 403 }404 Not Found
{ "error": "not_found", "message": "Resource not found.", "status": 404 }409 Conflict
{ "error": "conflict", "message": "Conflict with current state.", "status": 409 }503 Service Unavailable
{ "error": "service_unavailable", "message": "No active devices available.", "status": 503 }