function isIgnoredStatusCodeForErrors(config, code) {
  let codes = []
  if (config && config.error_collector && config.error_collector.ignore_status_codes) {
    codes = config.error_collector.ignore_status_codes
  }
  return codes.indexOf(parseInt(code, 10)) >= 0
}
Copy a set of request parameters from one object to another.
Existing attributes on the `destination` will be overwritten.

@param {object} source      Parameters to be copied (not changed).
@param {object} destination Dictionary to which parameters are copied
                            (mutated in place).