Switch to urllib2 which handles http status