http: more loose-ends error handling, added "hide_connection_errors" option