Lettermint.UnexpectedResponseError exception (Lettermint v2.1.0)

Copy Markdown View Source

The response could not be decoded: an empty or non-JSON body where JSON was expected, or an error status with a non-JSON body such as a proxy's HTML page. body_excerpt holds the first 200 characters of the body.

Summary

Types

t()

@type t() :: %Lettermint.UnexpectedResponseError{
  __exception__: term(),
  body_excerpt: String.t(),
  message: String.t(),
  status: non_neg_integer()
}