diff --git a/authz/client/src/main/java/org/keycloak/authorization/client/util/HttpMethod.java b/authz/client/src/main/java/org/keycloak/authorization/client/util/HttpMethod.java index a95a5da7fa..b324ac9f80 100644 --- a/authz/client/src/main/java/org/keycloak/authorization/client/util/HttpMethod.java +++ b/authz/client/src/main/java/org/keycloak/authorization/client/util/HttpMethod.java @@ -92,7 +92,7 @@ public class HttpMethod { int statusCode = statusLine.getStatusCode(); if (statusCode < 200 || statusCode >= 300) { - throw new HttpResponseException("Unexpected response from server: " + statusCode + " / " + statusLine.getReasonPhrase() + " Response : " + new String(bytes), statusCode, statusLine.getReasonPhrase(), bytes); + throw new HttpResponseException("Unexpected response from server: " + statusCode + " / " + statusLine.getReasonPhrase(), statusCode, statusLine.getReasonPhrase(), bytes); } if (bytes == null) {