/** * Return a response object that sets the status to "success" */ public RestResponseStatus buildSuccess() { this.status = RestResponseStatus.STATUS_SUCCESS; return new RestResponseStatus(this); }
/** * Return a response object that sets the status to "error" */ public RestResponseStatus buildError() { this.status = RestResponseStatus.STATUS_ERROR; return new RestResponseStatus(this); }