lib/errors.js
function HttpRequestError(nestedError, status, body){

  nestedError = nestedError || null;
  status = status || -1;
  body = body || null;

  superError.call(
    this,
    'HttpRequestError',
    util.format('An error [%s] occurred requesting content from an HTTP source: %s', status, nestedError || body)
  );

  this.status = status;
  this.body = body;
  this.nestedError = nestedError;
}
function HttpRequestError(nestedError, status, body){

  nestedError = nestedError || null;
  status = status || -1;
  body = body || null;

  superError.call(
    this,
    'HttpRequestError',
    util.format('An error [%s] occurred requesting content from an HTTP source: %s', status, nestedError || body)
  );

  this.status = status;
  this.body = body;
  this.nestedError = nestedError;
}
function HttpRequestError ( nestedError , status , body ) { nestedError = nestedError || null ; status = status || - 1 ; body = body || null ; superError . call ( this , 'HttpRequestError' , util . format ( 'An error [%s] occurred requesting content from an HTTP source: %s' , status , nestedError || body ) ) ; this . status = status ; this . body = body ; this . nestedError = nestedError ; }
Wraps an HTTP Request Error coming from an HTTP client library.
@param status {int} status code
@param body {String|Object} body of the response
@param nestedError {Error} error thrown by the client library.
@constructor
Wraps an HTTP Request Error coming from an HTTP client library .