mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
fix: changed html error code to the correct one
Refs: OPS-54
This commit is contained in:
parent
1ca1bc525b
commit
36c3d0a83f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue