message: returning 500 status code under error conditions
diff: @@ -200,14 +200,14 @@ function Slackbot(configuration) {
  slack_botkit.findAppropriateTeam(payload, function(err, team) {
  if (err) {
  slack_botkit.log.error('Could not load team while processing webhook: ', err);
  - return;
  + return res.status(500).send();
  } else if (!team) {
  // if this is NOT a slack app, it is ok to spawn a generic bot
  // this is only likely to happen with custom slash commands
  if (!slack_botkit.config.clientId) {
  bot = slack_botkit.spawn({});
  } else {
  - return;
  + return res.status(500).send();
  }
  } else {
  // spawn a bot
  @@ -223,7 +223,7 @@ function Slackbot(configuration) {
  if (!team.bot) {
  slack_botkit.log.error('No bot identity found.');
  - return;
  + return res.status(500).send();
  }
  }
  