UnstructuredClientError
class (the base class for all errors raised by the Unstructured Python SDK) and
the HTTPValidationError
class (inherited from UnstructuredClientError
). Less common errors are returned through the following classes:
httpx.RequestError
, the base class for request errors.httpx.ConnectError
, for HTTP connection request errors.httpx.TimeoutException
, for HTTP request timeout errors.ServerError
(inherited from UnstructuredClientError
), for server-side errors.ResponseValidationError
(inherited from UnstructuredClientError
), for type mismatches between the response data and the expected Pydantic model.Member | Type | Description |
---|---|---|
message | str | The eror message. |
status_code | int | The HTTP response status code, for example 401 . |
headers | httpx.Headers | A collection of HTTP response headers. |
body | str | The HTTP body. This can be an empty string if no body is returned. |
raw_response | httpx.Response | The raw HTTP response. |
401 Unauthorized
error is intentionally thrown.