How to use the @nakedobjects/services.HttpStatusCode.NotFound function in @nakedobjects/services

To help you get started, we’ve selected a few @nakedobjects/services examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / gemini / src / custom-component-config.service.ts View on Github external
configureCustomErrors(custom: ICustomErrorComponentConfigurator) {
        // by default configure page for 404 errors
        custom.addError(ErrorCategory.HttpClientError, HttpStatusCode.NotFound, ObjectNotFoundErrorComponent);
    }
}