"""Error types raised by the SDK."""

from __future__ import annotations

from typing import Any


class ApiError(Exception):
    """Raised when the API responds with a non-2xx status."""

    def __init__(self, message: str, status: int, body: Any) -> None:
        super().__init__(message)
        self.status = status
        self.body = body
