aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorHaakon Dybdahl <dybdahl@yahoo-inc.com>2016-11-22 13:12:14 +0100
committerHaakon Dybdahl <dybdahl@yahoo-inc.com>2016-11-22 13:12:14 +0100
commita51013b2dbfe2dc72b644a0502b029ea04510380 (patch)
tree151ff54e2f3f2336c340e2fdec57aea699cfc0f7 /vespa-http-client
parent9f0bc2a372a9f61bab7a7c4df8359d70c27db452 (diff)
Add comment
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
index d8a2d2ddd12..f3d751f67c7 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
@@ -260,6 +260,8 @@ class ApacheGatewayConnection implements GatewayConnection {
}
private void verifyServerResponseCode(StatusLine statusLine) throws ServerResponseException {
+ // We use code 261-299 to report errors related to internal transitive errors that the tenants should not care
+ // about to avoid masking more serious errors.
if (statusLine.getStatusCode() > 199 && statusLine.getStatusCode() < 260) {
return;
}