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

looks like @ckarlof uses 999 for unknown errors - I guess that could be the value for 500s. https://github.com/mozilla-services/msisdn-gateway/blob/master/API.md#response-format