It's worth testing this again with HTTP/2 with OkHttp 4.10.0-RC1
https://square.github.io/okhttp/changelog/#version-4100-rc1
Fix: Attempt to read the response body even if the server canceled the request. This will cause some calls to return nice error codes like HTTP/1.1 429 Too Many Requests instead of transport errors like SocketException: Connection reset and StreamResetException: stream was reset: CANCEL.
Originally posted by @yschimke in microsoftgraph/msgraph-sdk-java#473 (comment)
AB#7113