From 045fb77efaa21df12045f9ae950d20ce477c1903 Mon Sep 17 00:00:00 2001 From: "Dmitry.Tretyakov" Date: Mon, 28 Mar 2016 17:36:40 +0300 Subject: [PATCH] Fix status code validation in java client --- .../src/main/java/com/microsoft/azure/AzureClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java b/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java index 77c8c6c0e48cf..2f3569fc51c59 100644 --- a/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java +++ b/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java @@ -355,7 +355,7 @@ public AsyncPollingTask getPostOrDeleteResultAsync(Response } else { responseBody = response.errorBody(); } - if (statusCode != 200 && statusCode != 201 && statusCode != 202) { + if (statusCode != 200 && statusCode != 202 && statusCode != 204) { CloudException exception = new CloudException(statusCode + " is not a valid polling status code"); exception.setResponse(response); try {