Consistent error handling

- [ ] Server must return errors that have consistent format.
- [ ] Unify way of handling with Throw and Callback errors.
- [ ] Handle all errors. Now app can skip some errors, for example in PulsarDB.