Error handling in ajax filters