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:
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.
Both SDKs throw a typed error that includes the HTTP status and the ApiError body: