Remove alert() usage

Time for these to go. Specifically fixes issue with them happening for 404's on document APIs where we use a 400 fake status for XDR because it doesn't report a real status.