feat: send HTTP error 404 response
This commit is contained in:
parent
ec771521f5
commit
5aa8503f0c
1 changed files with 1 additions and 1 deletions
2
web.py
2
web.py
|
@ -14,7 +14,7 @@ def dist(path):
|
|||
|
||||
@app.errorhandler(404)
|
||||
def not_found(e):
|
||||
return send_from_directory('dist', '404.html')
|
||||
return send_from_directory('dist', '404.html'), 404
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue