Show an error message when something goes wrong with ajax petitions