Răsfoiți Sursa

fix status code

zahmis 5 ani în urmă
părinte
comite
81350740d8

+ 1 - 1
packages/slack/src/middlewares/verification-slack-request.ts

@@ -21,7 +21,7 @@ export const verificationSlackRequest = (req : Request & signingSecretType, res:
   const timestamp = req.headers['x-slack-request-timestamp'];
   const timestamp = req.headers['x-slack-request-timestamp'];
 
 
   if (slackSignature == null || timestamp == null) {
   if (slackSignature == null || timestamp == null) {
-    return res.status(401).send({ message: 'Unauthorized. Enter from Slack workspace' });
+    return res.status(403).send({ message: 'Forbidden. Enter from Slack workspace' });
   }
   }
 
 
   // protect against replay attacks
   // protect against replay attacks