private static HttpResponse fail(ServiceRequestContext ctx, Throwable cause) {
        logger.warn("{} Cannot handle a logout request", ctx, cause);
        final HttpStatus status;
        if (cause instanceof InvalidSamlRequestException) {
            status = HttpStatus.BAD_REQUEST;
        } else {
            status = HttpStatus.SERVICE_UNAVAILABLE;
        }
        return HttpResponse.of(status);
    }
A service which receives a single logout request from an identity provider in order to perform a global
logout.
saml/src/main/java/com/linecorp/armeria/server/saml/SamlSingleLogoutFunction.java