Errors
How the API communicates problems and what to do about them.
When a request fails, the API returns a non-2xx HTTP status code with a JSON body matching the ApiError schema:
HTTP status codes
Error codes
More codes will be added over time. Always use the HTTP status code as the primary indicator, and treat code as supplemental information for programmatic branching.
Handling errors in SDKs
Both SDKs throw a typed error that includes the HTTP status and the ApiError body: