Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Change 500 to 404 when team not found #1548

Merged
merged 1 commit into from
Dec 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/SlackBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
}

}
Expand Down