DEV-64 Better XHR error handling