HuggingfaceClient.Error.HttpRequestError exception (huggingface_client v0.1.0)

Copy Markdown View Source

Base for errors that carry HTTP request/response context. The Authorization header is automatically redacted.

Summary

Types

http_request()

@type http_request() :: %{
  url: String.t(),
  method: String.t(),
  headers: map() | nil,
  body: term()
}

http_response()

@type http_response() :: %{
  request_id: String.t(),
  status: non_neg_integer(),
  body: term()
}

t()

@type t() :: %HuggingfaceClient.Error.HttpRequestError{
  __exception__: true,
  http_request: http_request(),
  http_response: http_response(),
  message: String.t()
}