@Override
        default RuntimeException toException(int statusCode, byte[] body, ClassicHttpRequest request) {
            return new ResponseException(statusCode,
                                         request + " failed with status " + statusCode + " and body '" + new String(body, UTF_8) + "'");
        }
Throws the appropriate exception, for the given status code and body.
http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java