Skip to content

Exceptions

awtrix_light_client.http_client.AwtrixLightHttpClientError

AwtrixLightHttpClientError(status_code, content, *args)

Bases: BaseException

Class of API exception

Parameters:

Name Type Description Default
status_code int

HTTP status code of the response

required
content str

HTTP content of the response

required
Source code in awtrix_light_client/http_client.py
26
27
28
29
def __init__(self, status_code: int, content: str, *args: object) -> None:
    super().__init__(*args)
    self.status_code = status_code
    self.content = content