public static Object error(final ServerWebExchange exchange, final ShenyuResultEnum shenyuResult) {
        return shenyuResult().error(exchange, shenyuResult.getCode(), shenyuResult.getMsg(), null);
    }
Error object.

@param exchange the exchange
@param shenyuResult the shenyuResult
@return the object
shenyu-plugin/shenyu-plugin-api/src/main/java/org/apache/shenyu/plugin/api/result/ShenyuResultWrap.java