Edit ajax's error handler