[perf] change response http code
This commit is contained in:
parent
652db0ca20
commit
885e0c879c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue