From 8f9afaabc82d57e4f2896eb6fa018e2934203a01 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 9 Sep 2024 12:15:19 -0400 Subject: [PATCH] fix: missing parenthesis --- .../com/microsoft/graph/core/requests/ResponseBodyHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/microsoft/graph/core/requests/ResponseBodyHandler.java b/src/main/java/com/microsoft/graph/core/requests/ResponseBodyHandler.java index 5e21df42..4547309e 100644 --- a/src/main/java/com/microsoft/graph/core/requests/ResponseBodyHandler.java +++ b/src/main/java/com/microsoft/graph/core/requests/ResponseBodyHandler.java @@ -85,7 +85,7 @@ private void handleFailedResponse(Response nativeResponse, HashMap= 400 && statusCode <= 499 && errorMappings.containsKey("4XX"))) { + if (statusCode >= 400 && statusCode <= 499 && errorMappings.containsKey("4XX")) { statusCodePattern = "4XX"; } else if (statusCode >= 500 && statusCode <= 599 && errorMappings.containsKey("5XX")) { statusCodePattern = "5XX";