From 36c3d0a83fb8fe924492204d97528d6292ced672 Mon Sep 17 00:00:00 2001 From: 0xjrx Date: Fri, 21 Mar 2025 15:31:51 +0100 Subject: [PATCH] fix: changed html error code to the correct one Refs: OPS-54 --- senju/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/senju/main.py b/senju/main.py index b253183..b35fbee 100644 --- a/senju/main.py +++ b/senju/main.py @@ -75,7 +75,7 @@ def generate_haiku(): json_data = request.get_json() prompt = json_data["prompt"] if len(prompt)>100: - return "Unprocessable Entity", 422 + return "Content Too Large", 413 haiku = Haiku.request_haiku(prompt) id = store.save_haiku(haiku) return str(id)