Fixed validation of successful http response (2xx instead of just 200)