HttpOperationError Class

Client request failed due to server-specified HTTP operation error. Attempts to deserialize response into specific error object.

Inheritance
HttpOperationError

Constructor

HttpOperationError(deserialize: Deserializer, response: Any, resp_type: Optional[str] = None, *args: str, **kwargs: str)

Parameters

deserialize
Deserializer
Required

Deserializer with data on custom error objects.

response
<xref:requests.Response>
Required

Server response

resp_type
str
default value: None

Objects type to deserialize response.

args
Required

Additional args to pass to exception object.

Variables

error
Model

Deserialized error model.