LOG.warn("Error writing error response body", e);
}
+ try {
+ streamWriter.close();
+ } catch (IOException e) {
+ LOG.warn("Failed to close stream writer", e);
+ }
+
try {
return outStream.toString(StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {