Skip to content

Exceptions

ClientError

Bases: HttpException

Raised when the API returns a 4xx status code.

InternalServerError

Bases: RetryableException

Raised when the API returns a 5xx status code.

ResponseError

Bases: HttpException

Raised when an API response is empty or has an unexpected format.

RetryLimitExceeded

Bases: HttpException

Raised when the retry limit is exceeded.

RetryableException

Bases: HttpException

Class for exceptions which should be retryable. Never raise this yourself.

TooManyRequests

Bases: RetryableException

Raised when the API returns a 429 status code.