Skip to content

API Reference

AmbrAPIError

Bases: Exception

Base exception class for Ambr API errors.

Attributes:

Name Type Description
code

The HTTP status code associated with the error.

ConnectionTimeoutError

Bases: AmbrAPIError

Exception raised when the connection to the API times out (522).

Attributes:

Name Type Description
code

The HTTP status code, always 522.

DataNotFoundError

Bases: AmbrAPIError

Exception raised when requested data is not found (404).

Attributes:

Name Type Description
code

The HTTP status code, always 404.