only handle global error on ajax request