feat(error): add error middleware

Pavel Kuzmenko requested to merge kpn/error_widdleware into master

Merge request reports