Avoid use of deprecated symbols.
Improve error messages for failed retrieval of JSON documents over HTTP.