I am using flask and flask_sqlalchemy for a website, and I would like to be able to catch errors due to the database server being down and return a custom error page . Here