Add logging of 5xx errors

Andrey Veltischev requested to merge feature/catch_500x_errors into master

Merge request reports