@JWT_Required decorator Exception Handling
Here's the solution Benjo posted at the bottom of his question:
@jwt.unauthorized_loaderdef my_invalid_token_callback(expired_token): return render_template('401.html', title='Home')
Here is the documentation for changing the results for invalid tokens: https://flask-jwt-extended.readthedocs.io/en/stable/changing_default_behavior.html#changing-callback-functions