TypeSafe.PermissionDeniedError exception (TypeSafe v0.2.2)

Copy Markdown View Source

An unsuccessful HTTP response from the TypeSafe API.

Fields:

  • :status — HTTP status code.
  • :body — decoded JSON error body, plain text, or nil for an empty body.
  • :headers — response headers as a map of lowercased names to values.
  • :request_id — the x-typesafe-request-id header, or nil.
  • :endpoint — "METHOD URL" without credentials, or nil.
  • :message — a formatted, human-readable summary.

Summary

Types

t()

@type t() :: %TypeSafe.PermissionDeniedError{
  __exception__: term(),
  body: term(),
  endpoint: String.t() | nil,
  headers: %{optional(String.t()) => String.t()},
  message: String.t(),
  request_id: String.t() | nil,
  status: pos_integer()
}