OpenSearch/client/rest/src
javanna 1ea8f865d6 Add response body to ResponseException error message
Consuming the response body to make it part of the exception message means that it may not be readable anymore later, depending on whether the entity is repeatable or not. Turns out that the response body tells a lot about the error itself, and considering that we don't expect bodies to be incredibly big for errors, we can wrap the entity into a BufferedHttpEntity to make it repeatable.

Closes #19622
2016-07-28 14:44:20 +02:00
..
main/java/org/elasticsearch/client Add response body to ResponseException error message 2016-07-28 14:44:20 +02:00
test/java/org/elasticsearch/client Add response body to ResponseException error message 2016-07-28 14:44:20 +02:00