Error handler added on categories and subcategories.