diff --git a/web/errors.py b/web/errors.py new file mode 100644 index 0000000..abdc92b --- /dev/null +++ b/web/errors.py @@ -0,0 +1,6 @@ +# web/errors.py +from flask import jsonify + +@app.errorhandler(404) +def not_found(error): + return jsonify({'error': 'Not found'}), 404