Skip to content

ApiError

ApiError(code: str, message: str, status: int) -> None

Structured error raised by Api methods when a request fails.

  • code — Machine-readable error code (e.g. "not_found", "auth_missing").
  • message — Human-readable description.
  • status — HTTP status code (0 for client-side errors like missing credentials).