AbstractInweboResponse buildResponse(final AbstractInweboResponse response, final String operation, final String err) {
        if ("OK".equals(err)) {
            response.setResult(InweboResult.OK);
        } else {
            LOGGER.trace("Inwebo call: [{}] returned error: [{}]", operation, err);

            switch (err) {
                case "NOK:NOPUSH" -> response.setResult(InweboResult.NOPUSH);
                case "NOK:NOMA" -> response.setResult(InweboResult.NOMA);
                case "NOK:NOLOGIN" -> response.setResult(InweboResult.NOLOGIN);
                case "NOK:SN" -> response.setResult(InweboResult.SN);
                case "NOK:srv unknown" -> response.setResult(InweboResult.UNKNOWN_SERVICE);
                case "NOK:WAITING" -> response.setResult(InweboResult.WAITING);
                case "NOK:REFUSED" -> response.setResult(InweboResult.REFUSED);
                case "NOK:TIMEOUT" -> response.setResult(InweboResult.TIMEOUT);
                case null, default -> response.setResult(InweboResult.NOK);
            }
        }
        return response;
    }
Build response.

@param response  the response
@param operation the operation
@param err       the err
@return the abstract inwebo response
support/cas-server-support-inwebo-mfa/src/main/java/org/apereo/cas/support/inwebo/service/InweboService.java