Skip to content

Commit

Permalink
Merge pull request Azure#891 from dtretyakov/master
Browse files Browse the repository at this point in the history
Fix status code validation in java client
  • Loading branch information
jianghaolu committed Apr 1, 2016
2 parents 49a0c03 + 045fb77 commit 5a6f236
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public <T> AsyncPollingTask<T> getPostOrDeleteResultAsync(Response<ResponseBody>
} 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 {
Expand Down

0 comments on commit 5a6f236

Please sign in to comment.