Partially found how it works. Thank you all for your answers.
The location of the HTM file can be in the kernel or in a separate directory. If this case uses, for example, the following code in the app.yaml file:
error_handlers: - file: error_handlers/default_error.html
The displayed html file should now be placed in the error_handlers directory
When importing a nonexistent module into main.py, the page above is shown.
To get a 500 error, I used webapp2 to display a custom error page. This page is always displayed when an error occurs. Even when there is an over_quota error, and app.yaml is correctly configured. I also uninstalled webapp2 and used webapp again. Now no pages are displayed at all.
I have another application that is currently over_quote. How to display html over_quota page? This is mistake?
source share