todos
Setting a boolean in xhr shim error handler (custom cherry pick)