diff options
author | Geir Storli <geirst@oath.com> | 2018-02-05 13:36:27 +0100 |
---|---|---|
committer | Geir Storli <geirst@oath.com> | 2018-02-05 13:48:22 +0100 |
commit | c122f502249fb505c31165d5c97ba50caa0a3a33 (patch) | |
tree | 115f2c536f0d4fb028ac69c11c3577b16162d846 /vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandlerImpl.java | |
parent | b6df23d444aee889f5a275e0428f89d024d46bce (diff) |
Use separate error code for UNKNOWN_BUCKET_SPACE.
Diffstat (limited to 'vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandlerImpl.java')
-rw-r--r-- | vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandlerImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandlerImpl.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandlerImpl.java index d6ae4a9285a..af8650a8e7c 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandlerImpl.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandlerImpl.java @@ -323,7 +323,7 @@ public class OperationHandlerImpl implements OperationHandler { if (!targetBucketSpace.isPresent()) { throw new RestApiException(Response.createErrorResponse(400, String.format( "Document type '%s' in cluster '%s' is not mapped to a known bucket space", docType, clusterDef.getName()), - RestUri.apiErrorCodes.UNKNOWN_BUCKET_SPACE)); // TODO own code + RestUri.apiErrorCodes.UNKNOWN_BUCKET_SPACE)); } return new BucketSpaceRoute(clusterDefToRoute(clusterDef), targetBucketSpace.get()); } |