Python
The Python SDK exposes structuredSessionTokenError and AvatarSDKError instances. Use their stable code for program logic and log context fields such as failure phase, HTTP status, server details, correlation IDs, and WebSocket close information when present.
The complete field list and AvatarSDKErrorCode values live in the Python SDK error reference.
Go
The Go SDK returns standard Goerror values from session operations and sends asynchronous failures to the callback configured with WithOnError. Log the full error and preserve the operation that produced it.
See the Go SDK reference for its current public surface. Do not branch on Python AvatarSDKErrorCode values in Go code unless the installed Go SDK explicitly exports an equivalent typed error.
Recovery policy
Never log the API Key or complete Session Token while collecting diagnostic context.

