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

Commit

Permalink
Merge pull request #1548 from krashidov/master
Browse files Browse the repository at this point in the history
Change 500 to 404 when team not found
  • Loading branch information
benbrown authored Dec 20, 2018
2 parents 69fe275 + 76849ac commit e768f59
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit e768f59

Please sign in to comment.