Skip to content

Commit

Permalink
Fix status code validation in java client
Browse files Browse the repository at this point in the history
  • Loading branch information
dtretyakov committed Mar 28, 2016
1 parent 7a39169 commit 045fb77
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 045fb77

Please sign in to comment.