diff --git a/backend/middlewares/auth.ts b/backend/middlewares/auth.ts index c03c9ff04..b354b21ee 100644 --- a/backend/middlewares/auth.ts +++ b/backend/middlewares/auth.ts @@ -157,7 +157,7 @@ async function authenticateWithApeKey( const isKeyValid = await compare(apeKey, targetApeKey?.hash); if (!isKeyValid) { - throw new MonkeyError(400); + throw new MonkeyError(400, "Invalid ApeKey"); } return {