Skip to main content

API errors

Underlying HTTP transport errors can also propagate from ordinary API calls. Configure an appropriate request timeout and handle transport errors in your application. Training returns HTTP 409 for stale task revisions or operations requiring approval, and HTTP 422 for invalid or insufficient evidence. See the Training API for those contracts.

Client lifecycle

You can also call client.close() or await async_client.close() explicitly. A client cannot be reused after its context exits. Tracing has its own exporter lifecycle and content-free diagnostics. See flush and open Training for bounded shutdown and delivery checks.