code: function createError (errorMessage, statusCode, statusMessage) {
  
  	if (statusCode) {
  		errorMessage = errorMessage + '\nHTTP[S] status: ' + statusCode;
  
  		if (statusMessage) {
  			errorMessage = errorMessage + ' ' + statusMessage;
  		}
  	}
  
  	statusCode = statusCode || 0;
  	statusMessage = statusMessage || 'Unspecified';
  
  	let error = new Error(errorMessage);
  
  	error.statusCode = statusCode;
  	error.statusMessage = statusMessage;
  
  	return error;
  }
docs: Promises for JavaScript. See https://www.npmjs.com/package/q and https://github.com/kriskowal/q