HTTPower.Error (HTTPower v0.22.0)

Copy Markdown View Source

HTTP error struct from HTTPower.

This struct provides a clean abstraction for all possible HTTP errors, whether they're network issues, timeouts, or other problems.

Summary

Types

reason()

@type reason() ::
  atom()
  | {:http_status, integer(), HTTPower.Response.t()}
  | {:feature_error, module(), term()}

t()

@type t() :: %HTTPower.Error{message: String.t(), reason: reason()}