Change error message on bad xhr requests