Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #91 from davco01a/latest
Browse files Browse the repository at this point in the history
429
  • Loading branch information
brianxjx authored Nov 15, 2019
2 parents 517e771 + 6a530fc commit 02c8f6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/application/rest/CollectionsAccess.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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(" ");
Expand Down

0 comments on commit 02c8f6e

Please sign in to comment.