its just IOException, when the urlConn.getResponseCode is executed, it returns IOException.