I have the flask_app.py which has the exception handling,
from flask import abort @app.errorhandler(404) def NotFoundError(e): return jsonify(error=str(e)