Added custom URLopener that throws an exception when a http error code is received