add exception handling for several network conditions: No Connections
and HTTP response error