More error handling for HTTP access