Updated main.py

Added handler for 404 errors