Skip to main content

Error Handling

Simple error handling.

...// global error handlingapp.onError((error, rev) => {    return rev.response.send(error.message);})
// global not found error handlingapp.on404((rev) => {    return rev.response.send('Not Found');})...