[TASK] Streamline error message when Ajax request goes wrong

Change-Id: I7d3d5d2517e551f1b2b11839cda35435965c9b7b