去掉 openresty 需要修改源码涉及到文件
src/core/nginx.h
src/http/ngx_http_header_filter_module.c
src/http/ngx_http_special_response.c
src/http/v2/ngx_http_v2_filter_module.c
自定义错误页面 使用 error_page
        error_page  403 /403.html;
        location /403.html {
            default_type text/html;
            charset utf-8;
            root /tmp/403/;
        }