Exceptions¶
- exception TooManyRequests¶
is a custom exception class used to represent the HTTP status code 429, which indicates that the client has sent too many requests in a given amount of time.
- exception RequestError(message, status_code=None)¶
Custom exception class for handling errors that occur during HTTP requests.
- Parameters:
message – A string describing the error.
status_code – (int, optional): The HTTP status code associated with the error. Defaults to None.