Handle 500/404, empty Content-Length and requestMaxSize with JSON error messages.

We are already using all the errors described here and we are following the same organization as for FxA.