code: function(code, err) {
          this.response = {
              response: {
                  statusCode: code,
                  headers: {},
              },
              body: null,
              err: err,
          };
      }
docs: Fail with an Error when this request is satisfied.
  @param {Number} code The HTTP status code.
  @param {Error} err The error to throw (e.g. Network Error)