aito.client.v2.errors.AitoV2ResponseError

exception aito.client.v2.errors.AitoV2ResponseError(message: str, code: str | None = None, status_code: int | None = None, body: Any = None)

The response was not the shape the requested operation produces

Raised when the envelope carries a kind other than the one the called endpoint returns — the query did something other than what the caller thinks.

Parameters:
  • message (str) – the human-readable error message

  • code (Optional[str]) – the machine-readable error code, if the response carried one

  • status_code (Optional[int]) – the HTTP status code of the response, if there was a response

  • body (Any) – the raw response body