- .bodyToMono(String.class);
- Mono<GraphApiException> e = body
- .map(str -> create(response.statusCode(), null, str.getBytes()));
+ .createException()
+ .map(we -> create(response.statusCode(), response.headers().asHttpHeaders(), we.getResponseBodyAsByteArray()));