added code attribute to response obj in urlretrieve