Can you use
http://flask.pocoo.org/docs/api/#flask.Flask.errorhandler
instead of decorating each function?