} catch (IllegalArgumentException e) {
LOG.info("Error decoding credentials: {}", e.getMessage());
throw new NotAuthorizedException();
} catch (Exception e) {
LOG.warn("Error while authenticating credentials", e);
throw new InternalServerException();
}
throw new NotAuthorizedException();
}