3.6 Query APIs Error Reference
HTTP status is always
200; judge by thecodeinside the envelope (code == 0means success).
| code | Description |
|---|---|
| 0 | Success |
| 10000 | Authentication failed / missing X-Body-Hash |
| 10020 | Invalid parameter (e.g. ticket_id missing or not a UUID, time range missing or exceeding 90 days) |
| 10030 | No data found |
| 10060 | Rate limit triggered |
| 10070 | Unknown error (unclassified / unexpected error, defaults here) |
| 10080 | Internal server error |
TIP
The table above lists the currently known code values. If any other error not listed appears, 10070 (unknown error) is returned by default. Do not hard-code a whitelist check on code — treat any code != 0 as a failure and refer to message, to remain compatible with error codes that may be added in the future.