raise 404 if category could not found