lib/classes/Error.js/ServerlessError/constructor
class ServerlessError:  constructor(message, statusCode) {
    super(message);
    this.statusCode = statusCode;
    Error.captureStackTrace(this, this.constructor); // Not needed in Node.js v8+
  }