code: function(message, statusCode, kafkaErrorCode) {
    var error = new Error(message);
  
    if(statusCode) {
      error.statusCode = statusCode;
    }
  
    if(kafkaErrorCode) {
      error.errorCode = kafkaErrorCode;
    }
  
    return error;
  }
docs: generateErrorResponseObject
  Generate an error response object, which contains data (i.e. a message) and optionally a HTTP responseData
  code and Kafka error code.
  
  @param message         A useful message that can be printed to the console.
  @param statusCode      (Optional) The HTTP response code returned from the REST service.
  @param kafkaErrorCode  (Optional) The specific error code provided by the REST service (i.e. 42201).
  
  @returns Instance of Error which contains a message key and optionally statusCode and errorCode keys.