public static Errors forCode(final short code) {
        final Errors error = codeToError.get(code);
        if (error != null) {
            return error;
        } else {
            LOG.error("Unexpected error code: {}.", code);
            return UNKNOWN_SERVER_ERROR;
        }
    }
Throw the exception if there is one
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/errors/Errors.java