starsz opened a new pull request #4164: URL: https://github.com/apache/apisix/pull/4164
### What this PR does / why we need it: <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> As we discussed in the [email](https://lists.apache.org/thread.html/rbb88d707eeaf0dbcba4d73f1f741f3621f90e84785899c47479a8557%40%3Cdev.apisix.apache.org%3E), we should have our own 50x HTML and index.html.Index.html maybe not necessary because of apisix is a grateway, there is no opportunity to show the index.html. This PR is about to add 50x html into error_page. So when we had an error in apisix, we will show the html. If the upstream returns 5xx error, we will show the upstream response rather than the 50x.html. Fix: #3251 ### Pre-submission checklist: * [x] Did you explain what problem does this PR solve? Or what new features have been added? * [x] Have you added corresponding test cases? * [ ] Have you modified the corresponding document? * [ ] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix/tree/master#community) first** -- 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. For queries about this service, please contact Infrastructure at: [email protected]
