Skip to content

Class peagen.errors.DispatchHTTPError

peagen.errors.DispatchHTTPError

DispatchHTTPError(status_code)

Bases: RuntimeError

Raised when a worker responds with a non-200 HTTP status.

Source code in peagen/errors.py
213
214
215
def __init__(self, status_code: int) -> None:
    super().__init__(f"Worker returned HTTP {status_code}")
    self.status_code = status_code

status_code instance-attribute

status_code = status_code