code: function ResponseApi(constructorOptions) {
  
      LOG.debug('Instantiating new response object');
      LOG.debug('Validating options');
  
      try {
  
          this.options =
              new responseOptions.Constructor().validate(constructorOptions);
  
      } catch (err) {
  
          LOG.error('Received error: %s', err);
  
          throw(err);
  
      }
  
      this.response = {};
      this.isBatch = false;
  
      this._createResponseView();
  
  }
docs: Response-handling API
  
  @param {ResponseConstructorOptions} constructorOptions
  Options for the constructor
  @constructor
  @throws {NoBatchResponse}
  @throws {InvalidOptionError}