Creates a new handler for 404 errors.
The new handler.
import createServer from '@egomobile/http-server'import { handleApiError } from '@egomobile/api-utils'const app = createServer()app.setErrorHandler( handleApiError() )// ...app.listen() .catch(console.error) Copy
import createServer from '@egomobile/http-server'import { handleApiError } from '@egomobile/api-utils'const app = createServer()app.setErrorHandler( handleApiError() )// ...app.listen() .catch(console.error)
Generated using TypeDoc
Creates a new handler for 404 errors.