Unify error handling in rest server. Unify work with `next()`: Because all other callbacks of library don't use `return` before them, I've decided to remove them from `next()` too.