0

How to provide a default error page if Flask app is not available in Google App Engine. I see the following error if the app is not available and when its being deployed, how do I provide a more user friendly message.

Error: Not Found The requested URL / was not found on this server.

Rpj
  • 4,194
  • 12
  • 43
  • 94

1 Answers1

2

You can't: if the application is not available neither is its config, where custom error pages would be configured.

To avoid such errors it's better to always deploy a new app version and gradually switch traffic to it after it's verified to be working.

Related:

Dan Cornilescu
  • 38,757
  • 12
  • 59
  • 95