webservices/node_modules/oauth2orize/lib/errors/badrequesterror.js

23 lines
405 B
JavaScript

/**
* `BadRequestError` error.
*
* @api public
*/
function BadRequestError(message) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.name = 'BadRequestError';
this.message = message;
this.status = 400;
}
/**
* Inherit from `Error`.
*/
BadRequestError.prototype.__proto__ = Error.prototype;
/**
* Expose `BadRequestError`.
*/
module.exports = BadRequestError;