IO#

IO helpers and exceptions used by gordo_client.client.Client

exception gordo_client.io.BadGordoRequest#

Bases: Exception

Represents a general 4xx bad request

exception gordo_client.io.BadGordoResponse(msg: str, content: bytes, status_code: int = 200, content_type: str | None = None)#

Bases: Exception

Represents a general bad response (not json or model)

exception gordo_client.io.HttpUnprocessableEntity#

Bases: Exception

Represents an error from an HTTP status code of 422: UnprocessableEntity. Used in our case for calling /anomaly/prediction on a model which does not support anomaly behavior.

exception gordo_client.io.NotFound#

Bases: Exception

Represents a 404

exception gordo_client.io.ResourceGone#

Bases: Exception

Represents 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.