Kameleoon.Events.HttpRequestFailure (kameleoon_client v0.9.1)

Copy Markdown

Why an SDK HTTP request attempt failed.

Carried by Kameleoon.Events.HttpRequestFailed.

Summary

Types

reason()

@type reason() :: :http_status | :error | :cancelled
  • :http_status — the request completed with an unexpected HTTP status code, available in :http_status.
  • :error — the request failed with an error, described by :cause.
  • :cancelled — the request was cancelled, for example because it exceeded its timeout.

t()

@type t() :: %Kameleoon.Events.HttpRequestFailure{
  cause: String.t() | nil,
  http_status: non_neg_integer() | nil,
  reason: reason()
}