Capture XHR on failure and display errors