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.
1 parent e83f4d8 commit bd5e16fCopy full SHA for bd5e16f
src/main/java/com/emc/rest/smart/SmartFilter.java
@@ -75,7 +75,12 @@ public ClientResponse handle(ClientRequest request) throws ClientHandlerExceptio
75
ClientResponse response = getNext().handle(request);
76
77
// capture request stats
78
- host.callComplete(false);
+ if (response.getStatus() >= 500 && response.getStatus() != 501) {
79
+ // except for 501 (not implemented), all 50x responses are considered server errors
80
+ host.callComplete(true);
81
+ } else {
82
+ host.callComplete(false);
83
+ }
84
85
// wrap the input stream so we can capture the actual connection close
86
response.setEntityInputStream(new WrappedInputStream(response.getEntityInputStream(), host));
0 commit comments