Return XHR on HTTP error