function AxiosError(message, code, config, request, response) {
  Error.call(this);

  if (Error.captureStackTrace) {
    Error.captureStackTrace(this, this.constructor);
  } else {
    this.stack = (new Error()).stack;
  }

  this.message = message;
  this.name = 'AxiosError';
  code && (this.code = code);
  config && (this.config = config);
  request && (this.request = request);
  if (response) {
    this.response = response;
    this.status = response.status ? response.status : null;
  }
}
Create an Error with the specified message, config, error code, request and response.

@param {string} message The error message.
@param {string} [code] The error code (for example, 'ECONNABORTED').
@param {Object} [config] The config.
@param {Object} [request] The request.
@param {Object} [response] The response.

@returns {Error} The created error.