Middleware to show better 4xx, 5xx responses

I've added exception handling in middleware process execution to postprocess also error responses.

Closes #46