As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
catch (error) { var msg = error.message; if (logger.isLoggingEnabled()) logger.log(msg); // determine if the exception was a FormNotFoundException, if so return // 404 status code otherwise return 500 if (msg.indexOf("FormNotFoundException") != -1) { status.setCode(404, msg); if (logger.isLoggingEnabled()) logger.log("Returning 404 status code"); } else { status.setCode(500, msg); if (logger.isLoggingEnabled()) logger.log("Returning 500 status code"); } return; }