How to Solve NameError: name 'HTTPException' is not defined -- werkzeug

Solution: Import the 'HTTPException' module

# Add the following line to the top of your code
from werkzeug.exceptions import HTTPException

 

For more information:
werkzeug HTTPException