Lettermint.PermissionError exception (Lettermint v2.1.0)

Copy Markdown View Source

HTTP 403: the token may not perform this action, or the plan lacks the feature.

  • status: the HTTP status code
  • code: the machine-readable code from {"error": {"code": ...}} or a string error field, or nil
  • message: the API's message, or "HTTP <status>"
  • details: {"error": {"details": ...}}, or nil
  • body: the decoded JSON body, or nil for an empty body

Summary

Types

t()

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