What should I do if my some pages are showing 404 error, are they good for SEO or not?

How to take benefit of this?