In Flask is there a way to handle all the type of errors with one error handler & return the type of error occurred?

Solution
from flask import Flask
from werkzeug.exceptions import HTTPException

app = Flask(__name__)


@app.route("/")
def hello():
    return "Welcome to Python Flask."


@app.errorhandler(HTTPException)
def handle_exception(e):
    return f'Type of error occurred is {e.code}'

app.run()