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.
OmniError also exposes statusCode, body, and rawResponse when the failure came from HTTP.