Via #57, three classes are introduced to log API errors.
The base class, APIException, the TooManyRequestsError exception for 429 responses, and the NonStandardResponseCodeError.
Additional exceptions could need to be identified, if desired, and additional exceptions should be created to handle those. Right now, NonStandardResponseCodeError is a catch all for any responses that are not 429 or 200.
Via #57, three classes are introduced to log API errors.
The base class,
APIException, theTooManyRequestsErrorexception for429responses, and theNonStandardResponseCodeError.Additional exceptions could need to be identified, if desired, and additional exceptions should be created to handle those. Right now,
NonStandardResponseCodeErroris a catch all for any responses that are not429or200.