IO#
IO helpers and exceptions used by gordo_client.client.Client
- exception gordo_client.io.BadGordoResponse(msg: str, content: bytes, status_code: int = 200, content_type: str | None = None)#
Bases:
ExceptionRepresents a general bad response (not json or model)
- exception gordo_client.io.HttpUnprocessableEntity#
Bases:
ExceptionRepresents an error from an HTTP status code of
422: UnprocessableEntity. Used in our case for calling/anomaly/predictionon a model which does not support anomaly behavior.
- exception gordo_client.io.ResourceGone#
Bases:
ExceptionRepresents an error from an HTTP status code of 410: Gone. Indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.
Used in our case for calling the server with a revision which is no longer used.