User IOError to catch errors

Most http related exceptions inherit from that one