code: function ValidationFailed(reason) {
    Error.captureStackTrace(this, this.constructor);
    this.type = 'bad_request';
    this.statusCode = 400;
    this.message = 'Request validation failed';
    this.reason = reason;
  }
docs: ValidationFailed returns the proper status code and type