urlopen() doesn't return a HTTP status code. the IOError is either 2 or -2.