Added detection of Network Errors to HttpUploader library

Added detection of Network Errors to HttpUploader library