How to view the code for a certain page?

If they are 404, you can’t put a noindex on them! You can put rel=nofollow on the links that link to the removed pages.

It also helps to have a sitemap so that Google can track changes more easily.