diff --git a/src/main/java/application/rest/CollectionsAccess.java b/src/main/java/application/rest/CollectionsAccess.java index 02ab74b..c2b6caf 100644 --- a/src/main/java/application/rest/CollectionsAccess.java +++ b/src/main/java/application/rest/CollectionsAccess.java @@ -109,7 +109,7 @@ public Response listCollections(@Context final HttpServletRequest request) { if (firstElem.contains("http code 429:")) { JSONObject resp = new JSONObject(); resp.put("message", firstElem); - return Response.status(503).entity(resp).build(); + return Response.status(429).entity(resp).build(); } } @@ -216,8 +216,8 @@ public Response onboardDeveloper(@Context final HttpServletRequest request, fina @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @Path("/collections") - public Response refreshCollections(@Context final HttpServletRequest request) { - // kube call to refresh collection + public Response syncCollections(@Context final HttpServletRequest request) { + // kube call to sync collection ApiClient apiClient = null; try { apiClient = KubeUtils.getApiClient(); @@ -260,7 +260,7 @@ public Response refreshCollections(@Context final HttpServletRequest request) { if (firstElem.contains("http code 429:")) { JSONObject resp = new JSONObject(); resp.put("message", firstElem); - return Response.status(503).entity(resp).build(); + return Response.status(429).entity(resp).build(); } } System.out.println(" ");