Error Handling

Failures throw PromptOrchestraApiError (core/errors.ts) with:

  • diagnostic — normalized ExternalDiagnostic (from externalDiagnosticWireSchema when possible)
  • httpStatus
  • requestId optional
  • method, path, rawBody

Use isPromptOrchestraApiError for type narrowing. Configuration errors (missing token) throw PromptOrchestraClientConfigError.

See also

Was this page helpful?