A non-2xx HTTP response, normalized whatever error shape the server used:
the standard envelope {"error": {"code", "message", "details", "request_id"}} (#45) or one of the legacy shapes
(packages/conformance/errors.json).
Summary
Functions
Builds the error from a status, headers ([{name, value}] or a map) and the raw body.
Types
Functions
@spec from_response(integer(), Enumerable.t(), binary()) :: t()
Builds the error from a status, headers ([{name, value}] or a map) and the raw body.