INNER CODE UNIT · Python
APIError
atenreiro/opensquat · opensquat/api_client.py:54
class APIError(Exception):
"""Generic openSquat API error."""
class APIAuthError(APIError):
"""401 Unauthorized — missing or invalid API key."""
class APIPlanError(APIError):
"""403 Forbidden — plan limit exceeded."""
class APIQuotaExhausted(APIError):
"""429 Too Many Requests — monthly quota exhausted (permanent until reset)."""
def __init__(self, message, balance=0):
super().__init__(message)
self.balance = balance