From 885e0c879c331e8b8d771d988819fdf9fd358ea5 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Wed, 2 Aug 2023 17:47:27 +0800 Subject: [PATCH] [perf] change response http code --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index d65cee9..12c7bc3 100644 --- a/app/main.py +++ b/app/main.py @@ -111,10 +111,10 @@ async def inbox( payload = await request.json() if not httpsig_checker: - return Response(status_code=406, content="invalid http-sig") + return Response(status_code=401, content="invalid http-sig") if not await save_incoming(db_session, payload): - return Response(status_code=406, content="invalid activitypub object") + return Response(status_code=401, content="invalid activitypub object") return Response(status_code=202)