From 76849ac8e9935eef9cc247fa7bdf5963350a375f Mon Sep 17 00:00:00 2001 From: Komran Rashidov Date: Tue, 18 Dec 2018 16:16:56 -0700 Subject: [PATCH] Change 500 to 404 when team not found --- lib/SlackBot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SlackBot.js b/lib/SlackBot.js index 24f9ef5c3..33be8b449 100755 --- a/lib/SlackBot.js +++ b/lib/SlackBot.js @@ -285,7 +285,7 @@ function Slackbot(configuration) { if (!slack_botkit.config.clientId) { bot = slack_botkit.spawn({}); } else { - return res.status(500).send(); + return res.status(404).send(); } } else { // spawn a bot @@ -303,7 +303,7 @@ function Slackbot(configuration) { if (!team.bot) { slack_botkit.log.error('No bot identity found.'); - return res.status(500).send(); + return res.status(404).send(); } }