From 29dd1eb5925205e925c04766563fb49f8062ca99 Mon Sep 17 00:00:00 2001 From: Youen Date: Mon, 29 May 2023 21:39:16 +0200 Subject: [PATCH] Added HTTP error code 400 when a BusinessException occurs --- src/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 5e3c523..a89a330 100644 --- a/src/app.py +++ b/src/app.py @@ -8,7 +8,7 @@ from flask import Flask, render_template import data.document def handle_exceptions(e): - return render_template("error.html", message = str(e)) + return render_template("error.html", message = str(e)), 400 def create_app(): app = Flask(__name__)