The python SDK defines a few custom exceptions to make the handling of API error codes more pythonic:
ResourceNotFoundError is the SDK equivalent of an HTTP 404. It means that the resource you tried
to fetch does not exist.
BadRequestError is the SDK equivalent of an HTTP 400. It means that you tried to create or update a resource
with an invalid payload. Refer to the api documentation for more details on the different models in use by the Opfront API.
ForbiddenError is the SDK equivalent of an HTTP 403. It means you tried to access a restricted resource.
UnexpectedError reflects an unexpected failure on our end, it is the SDK equivalent of an HTTP 500. Simply retry your request at a later time.