Fixing httpresponse objects so it won't error out