text: // Copyright IBM Corp. 2012,2016. All Rights Reserved.
  // Node module: loopback-component-oauth2
  // This file is licensed under the MIT License.
  // License text available at https://opensource.org/licenses/MIT
  
  var util = require('util');
  
  /**
   * `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`.
   */
  util.inherits(BadRequestError, Error);
  
  /**
   * Expose `BadRequestError`.
   */
  module.exports = BadRequestError;
  