Error format
All errors return a JSON body with anerror code and a message:
Status codes
| Status | Code | When |
|---|---|---|
400 | invalid_body | Missing required field or malformed JSON |
401 | unauthorized | Authorization header missing, key malformed, or revoked |
403 | forbidden | Key does not have access to the requested resource |
404 | not_found | Resource does not exist |
422 | invalid_level | level is not one of DEBUG, INFO, WARN, ERROR |
429 | rate_limited | Rate limit exceeded |
500 | server_error | Unexpected server error — contact support if this persists |