Log generated HTTP errors in JSON format

This logs all HTTP errors that the router generates (due to backend timeouts, panics etc...), not HTTP errors it receives from a backend (these are just proxied through normally).