reachability and HTTP error handling