Errors
All errors return a JSON body with ok: false and a human-readable error message. Stack traces are never exposed.
Error Format
{
"ok": false,
"error": "Human-readable error message"
}HTTP Status Codes
| Code | Meaning | When |
|---|---|---|
200 | OK | Successful request |
201 | Created | Resource created (triggers, shares) |
400 | Bad Request | Missing or invalid parameters |
401 | Unauthorized | Missing Authorization header |
403 | Forbidden | Invalid token |
404 | Not Found | Resource or endpoint not found |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Unhandled error |
502 | Bad Gateway | External service or connector error |
503 | Service Unavailable | Auth secret not configured or component unavailable |
CLI Exit Codes
When interacting via the CLI, commands use numeric exit codes that map to error categories:
| Exit Code | Name | Meaning |
|---|---|---|
0 | SUCCESS | Command completed successfully |
1 | GENERAL | General error |
2 | NETWORK | Network or connectivity failure |
3 | AUTH | Authentication error |
5 | NOT_FOUND | Resource not found |
7 | TIMEOUT | Operation timed out |