Google AppEngine:Google Cloud Platform 出现错误 403 时,如何重定向到 html 错误页面?

Google AppEngine: How to redirect to html error page when error 403 occurs on Google Cloud Platform?

我正在寻找一种将 403 错误重定向到 AppEngine Standard Google 云平台上的 html 错误页面的方法。

您可以配置 app.yaml file so it redirects errors to custom pages by using the error_handlers 元素:

error_handlers: Optional. Used to configure custom error pages that are returned for different error types.