From 1033b778aa0364a4d57135c21616d3076986ede8 Mon Sep 17 00:00:00 2001 From: maike Date: Mon, 6 Jul 2020 15:20:28 +0200 Subject: [PATCH] [email] Return 451 for censored messages --- kibicara/platforms/email/webapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibicara/platforms/email/webapi.py b/kibicara/platforms/email/webapi.py index 6c2e665..a226f34 100644 --- a/kibicara/platforms/email/webapi.py +++ b/kibicara/platforms/email/webapi.py @@ -63,4 +63,4 @@ async def email_message_create(message: BodyMessage): if await spawner.get(email_bot).publish(Message(message.text)): return status.HTTP_201_CREATED else: - return status.HTTP_406_NOT_ACCEPTABLE + return status.HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS