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