From f7a818e0503eefdf9f4f23dec4127eff81a066d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sat, 3 Nov 2018 18:24:54 +0100 Subject: [PATCH] Add handler for 404 errors --- app/api/blueprint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/blueprint.py b/app/api/blueprint.py index 8f95d9d..0b005ca 100644 --- a/app/api/blueprint.py +++ b/app/api/blueprint.py @@ -91,6 +91,7 @@ def handle_value_error(e): @api_bp.errorhandler(NotPresentError) +@api_bp.errorhandler(404) def handle_not_present_error(e): return jsonify({'status': 'error', 'message': str(e)}), 404