Lettermint.ServerError exception (Lettermint v2.1.0)

Copy Markdown View Source

HTTP 5xx with a JSON or empty body.

Has the fields of Lettermint.APIError, plus retry_after: the seconds to wait, from the Retry-After header (seconds or an HTTP date), or nil when the API did not send one.

Summary

Types

t()

@type t() :: %Lettermint.ServerError{
  __exception__: term(),
  body: term(),
  code: String.t() | nil,
  details: term(),
  message: String.t(),
  retry_after: non_neg_integer() | nil,
  status: pos_integer()
}