We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59da358 + c779905 commit 0d40a53Copy full SHA for 0d40a53
src/main/resources/Java/apiInvoker.mustache
@@ -12,6 +12,7 @@ import com.sun.jersey.api.client.config.DefaultClientConfig;
12
import com.sun.jersey.api.client.filter.LoggingFilter;
13
import com.sun.jersey.api.client.WebResource.Builder;
14
15
+import javax.ws.rs.core.Response.Status.Family;
16
import javax.ws.rs.core.MediaType;
17
18
import java.util.Map;
@@ -123,7 +124,7 @@ public class ApiInvoker {
123
124
else {
125
throw new ApiException(500, "unknown method type " + method);
126
}
- if(response.getClientResponseStatus() == ClientResponse.Status.OK) {
127
+ if(response.getClientResponseStatus().getFamily() == Family.SUCCESSFUL) {
128
return (String) response.getEntity(String.class);
129
130
0 commit comments