Lewisyixin opened a new issue, #11855: URL: https://github.com/apache/apisix/issues/11855
### Description Apisix doesn't have plugins about error_page which is useful in some scene. And I tried the following 2 ways: 1. Add error_page config in http_server_configuration_snippet  this way works well when there comes 5xx requests. But I found these 5xx requests could't be recorded in metrics(prometheus plugin) 2. Based on step 1, I add lua phase config  And this time 5xx request successfully recorded in metrics But I still have 2 questions: 1. Are there any risks in the configuration of step 2? 2. I found that there is error_page configurations in the 2.15 version code but removed in version 3(https://github.com/apache/apisix/blob/2.15.3/apisix/cli/ngx_tpl.lua#L574), so I just want to know why remove these error_page code? ### Environment - APISIX version (run `apisix version`): 3.5 - Operating system (run `uname -a`): 3.10.0-514.26.2.el7.x86_64 - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx version: openresty/1.21.4.2 - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): 3.5 - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): 2.3.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
