Shared adapter helpers: HTTP-status -> Error kind mapping and int coercion. Error values never carry tokens, auth headers, or secret-bearing URLs.
@spec error_from_status(integer() | nil, String.t(), keyword()) :: Noizu.Comms.Error.t()
@spec int_or_nil(term()) :: integer() | nil
@spec status_kind(integer() | nil) :: atom()