[perf] change response http code

This commit is contained in:
SouthFox 2023-08-02 17:47:27 +08:00
parent 652db0ca20
commit 885e0c879c

View file

@ -111,10 +111,10 @@ async def inbox(
payload = await request.json() payload = await request.json()
if not httpsig_checker: 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): 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) return Response(status_code=202)