A page that returns a non-200 status (or a "soft 404" that returns 200 but shows an error page) can be dropped from an index entirely or mislead engines about what the page contains.
Make sure the page returns an actual HTTP 200 status, and that genuinely missing pages return a real 404, not a 200 with an error message.