Noizu.Comms.Adapters.Common (noizu_comms v0.1.0)

Copy Markdown View Source

Shared adapter helpers: HTTP-status -> Error kind mapping and int coercion. Error values never carry tokens, auth headers, or secret-bearing URLs.

Summary

Functions

error_from_status(status, message, extra \\ [])

@spec error_from_status(integer() | nil, String.t(), keyword()) ::
  Noizu.Comms.Error.t()

int_or_nil(i)

@spec int_or_nil(term()) :: integer() | nil

status_kind(arg1)

@spec status_kind(integer() | nil) :: atom()