check HTTP status code of NSURLConnection responses during xhr polling transport just like when checking HTTP status code during handshake. Handles case when server restarts while connection with device is already established.