lib/errors.js
function ApiHttpError(statusCode, response, message) {
	this.name = "ApiHttpError";
	this.statusCode = statusCode;
	this.response = response;
	this.message = message || response
		|| util.format('Unexpected %s status code', statusCode);

	if (Error.captureStackTrace
		&& typeof Error.captureStackTrace === 'function') {
		Error.captureStackTrace(this, ApiHttpError);
	}
}
function ApiHttpError(statusCode, response, message) {
	this.name = "ApiHttpError";
	this.statusCode = statusCode;
	this.response = response;
	this.message = message || response
		|| util.format('Unexpected %s status code', statusCode);

	if (Error.captureStackTrace
		&& typeof Error.captureStackTrace === 'function') {
		Error.captureStackTrace(this, ApiHttpError);
	}
}
function ApiHttpError ( statusCode , response , message ) { this . name = "ApiHttpError" ; this . statusCode = statusCode ; this . response = response ; this . message = message || response || util . format ( 'Unexpected %s status code' , statusCode ) ; if ( Error . captureStackTrace && typeof Error . captureStackTrace === 'function' ) { Error . captureStackTrace ( this , ApiHttpError ) ; } }
ApiHttpError  Creates a new ApiHttpError supplied to callbacks when an error response is received at transport level.  - @constructor - @param {Number} statusCode - The HTTP status code of the request. - @param {String} response - (Optional) The response body. - @param {String} message - (Optional) The message
ApiHttpError Creates a new ApiHttpError supplied to callbacks when an error response is received at transport level . -