From fce00818c51184b1876b59b73bc914dbe9bde652 Mon Sep 17 00:00:00 2001 From: Viktor Holk Date: Sat, 3 Oct 2020 16:33:16 +0200 Subject: [PATCH] response message --- api/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app.py b/api/app.py index 9ec62de..baa145e 100644 --- a/api/app.py +++ b/api/app.py @@ -8,10 +8,10 @@ def index(): if request.method == 'POST': if not request.json == None: if not 'title' in request.json: - return decorate_response(400, "Not a valid title", "") + return decorate_response(400, "Title was not found", "") if not 'text' in request.json: - return decorate_response(400, 'Not a valid text', "") + return decorate_response(400, 'Text was not found', "") data = { 'title': request.json['title'],