public void error(String errorStatus, String errorScope, String errorOpenIDConfiguration) {
        if (Objects.requireNonNull(errorStatus).isEmpty())
            throw new IllegalArgumentException("error status must not be empty");
        this.errorStatus = errorStatus;
        this.errorScope = errorScope;
        this.errorOpenIDConfiguration = errorOpenIDConfiguration;
        this.token = null;
    }
Set the error values as per
<a href="https://tools.ietf.org/html/rfc7628#section-3.2.2">RFC 7628: A Set
of Simple Authentication and Security Layer (SASL) Mechanisms for OAuth</a>.
Any token is cleared.

@param errorStatus
           the mandatory error status value from the <a href=
           "https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#extensions-error">IANA
           OAuth Extensions Error Registry</a> to set
@param errorScope
           the optional error scope value to set
@param errorOpenIDConfiguration
           the optional error openid-configuration value to set
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/OAuthBearerValidatorCallback.java