message: put filter for 401s in statAPI
diff: @@ -634,11 +634,17 @@ module.exports = function(controller) {
  }
  var json = null;
  +
  try {
  json = JSON.parse(body);
  +
  } catch (e) {
  }
  + if(res.statusCode === 401){
  + console.error(json.error);
  + reject(json.error);
  + }else {
  if (!json || json == null) {
  return reject('Response from Botkit Studio API was empty or invalid JSON');
  } else if (json.error) {
  @@ -646,7 +652,7 @@ module.exports = function(controller) {
  } else {
  resolve(json);
  }
  -
  + }
  });
  });
  }
  