It looks like pages with 404 error code are indexed. Is there a way to prevent pages from getting indexed by using another code, and not get penalized. Robots.txt is not practical.