Setting a boolean in xhr shim error handler