code: function ApiError(response, client) {
    this.name = "heap.ApiError";
    this.response = response;
    this.client = client;
    this.message = this.toString();
    Error.captureStackTrace(this, ApiError);
  }
docs: Creates an exception representing an error sent by the Heap API server.
  
  @constructor
  @param {http.IncomingMessage} response the Heap API server's response
  @param {heap-api.Client} client the Heap API client that received the error
  @alias heap-api.ApiError