class CustomSendErrorFilter extends SendErrorFilter {

    @Override
    public int filterOrder() {
        return super.filterOrder() - 1; // Ensure it runs before SendErrorFilter
    }

    public  CustomSendErrorFilter(@Value("${error.path:/error}") String errorPath);

}