code: function RestError(options) {
      assert.object(options, 'options');
  
      options.constructorOpt = options.constructorOpt || RestError;
      HttpError.apply(this, arguments);
  
      var self = this;
      this.restCode = options.restCode || 'Error';
      this.body = options.body || {
          code: self.restCode,
          message: options.message || self.message
      };
  }
docs: /--- API