protected State error(Request request, Response response, String code, String message) { errorHandler.responseError(request,response, HTTP.Status.INTERNAL_SERVER_ERROR.value(), code, message); return State.INTERCEPTED; }
errorHandler.handleInvalidToken(request, response, e.getMessage()); return State.INTERCEPTED; } catch (OAuth2ResponseException e) { return State.CONTINUE; errorHandler.responseError(request, response, e.getStatus(), e.getError(), e.getMessage()); return State.INTERCEPTED; } catch (Throwable e) { log.error("Error resolving authentication from access token : {}", e.getMessage(), e); errorHandler.handleServerError(request, response, e); return State.INTERCEPTED;