- Added checks for several possible network and response errors.