Source: responses/network-response.js

/**
 * Copyright© 2016, Oracle and/or its affiliates. All rights reserved.
 * Created by Yuri Panshin on 2016-08-26.
 */

/**
 * Class that provides network response details.
 * @constructor
 * @global
 */
function NetworkResponse(statusCode, data, headers) {

  /**
   * The network status code.
   * @type {Number}
   */
  this.statusCode = statusCode;

  /**
   * The error data.
   * @type {Object}
   */
  this.data = data;

  /**
   * The response headers.
   * @type {String}
   */
  this.headers = headers;
}