You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG.error("Error granting access to application id : {} for API-Proxy : {} using URI: {} Received Status-Code: {} Response: {}", applicationId, apiAccess.getApiId(), uri, statusCode, response);
220
-
thrownewAppException("Can't grant access to API.", ErrorCode.ERR_GRANTING_ACCESS_TO_API);
221
+
if (statusCode == 409 && response.contains(RESOURCE_ALREADY_EXISTS)) {
222
+
LOG.info(ERROR, apiAccess, statusCode, response);
223
+
returnapiAccess;
224
+
}else {
225
+
LOG.error("Error granting access to application id : {} for API-Proxy : {} using URI: {} Received Status-Code: {} Response: {}", applicationId, apiAccess.getApiId(), uri, statusCode, response);
226
+
thrownewAppException("Can't grant access to API.", ErrorCode.ERR_GRANTING_ACCESS_TO_API);
0 commit comments