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

See https://mxr.mozilla.org/mozilla-central/source/services/fxaccounts/FxAccountsCommon.js#91