superrouteErrorFromResponse function

SuperrouteException superrouteErrorFromResponse(
  1. Response response,
  2. Object? decoded
)

The SuperrouteException of a refused response whose body was decoded to decoded: status, body, headers, Retry-After and request id.

Implementation

SuperrouteException superrouteErrorFromResponse(http.Response response, Object? decoded) =>
    superrouteErrorFrom(response.statusCode, decoded, null, headers: response.headers);