Errors

APIPageStatusError

class compuglobal.APIPageStatusError(page_status, url, retry_after=None)

Raised when the status code for the API is not 200.

Parameters:
  • page_status (int) – The page status code returned by the API.

  • url (str) – The base url that raised the error.

  • retry_after (int | None) – Number of seconds to wait before retrying if error was a 429.

NoSearchResultsFoundError

class compuglobal.NoSearchResultsFoundError(message='No search results found.')

Raised when no search results are found.