Skip to main content
Non-2xx responses throw a subclass of OmniError. The CLI prints the same class name, message, and JSON body on stderr and exits 1.
The TypeScript error exposes statusCode, body, and rawResponse. The Python error exposes status_code, body, and raw_response. JobFailedError also exposes jobStatus in TypeScript and job_status in Python.