oauth2orize
Version:
OAuth 2.0 authorization server toolkit for Node.js.
24 lines (20 loc) • 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;