HTTPError¶
- class ytnoti.errors.HTTPError(message: str, status_code: int | HTTPStatus)¶
Exception raised when an HTTP error occurs.
- __init__(message: str, status_code: int | HTTPStatus) None¶
Initialize the HTTPError object.
- Parameters:
message – The error message
status_code – The status code of the error
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.