Accept http status codes 2xx

The xhr response handling code changed to accept all 2xx status codes as success