diff options
author | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-05-06 12:28:42 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-05-06 12:28:42 +0200 |
commit | f7ea29c07969bbeaf76254d130501c05c1480fb2 (patch) | |
tree | f817ba283b7cfd3d9b146eee1a4bdd3892a84c30 /configserver | |
parent | 1b16a29e13b667b897c57da5f5787bf3b97af9ae (diff) |
Return conflict instead
Diffstat (limited to 'configserver')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpErrorResponse.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpErrorResponse.java b/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpErrorResponse.java index 0c443c76679..a29891ae764 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpErrorResponse.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpErrorResponse.java @@ -11,7 +11,12 @@ import java.io.IOException; import java.io.OutputStream; import java.util.logging.Logger; -import static com.yahoo.jdisc.Response.Status.*; +import static com.yahoo.jdisc.Response.Status.BAD_REQUEST; +import static com.yahoo.jdisc.Response.Status.CONFLICT; +import static com.yahoo.jdisc.Response.Status.INTERNAL_SERVER_ERROR; +import static com.yahoo.jdisc.Response.Status.METHOD_NOT_ALLOWED; +import static com.yahoo.jdisc.Response.Status.NOT_FOUND; +import static com.yahoo.jdisc.Response.Status.REQUEST_TIMEOUT; /** * @author Ulf Lilleengen @@ -87,7 +92,7 @@ public class HttpErrorResponse extends HttpResponse { } public static HttpErrorResponse parentHostNotReady(String msg) { - return new HttpErrorResponse(BAD_REQUEST, errorCodes.PARENT_HOST_NOT_READY.name(), msg); + return new HttpErrorResponse(CONFLICT, errorCodes.PARENT_HOST_NOT_READY.name(), msg); } @Override |