Middleware to show better 4xx, 5xx responses