feat: send HTTP error 404 response

This commit is contained in:
Ayo Ayco 2024-04-10 17:39:45 +02:00
parent ec771521f5
commit 5aa8503f0c

2
web.py
View file

@ -14,7 +14,7 @@ def dist(path):
@app.errorhandler(404) @app.errorhandler(404)
def not_found(e): def not_found(e):
return send_from_directory('dist', '404.html') return send_from_directory('dist', '404.html'), 404
if __name__ == '__main__': if __name__ == '__main__':