Since you're asking about SEO, this will also be helpful: [developers.google.com...]
Simply put: of the most common status codes you'll encounter, 200 is the only one that'll allow a resource to be indexed. There are a few exceptions but they're of no concern to most.
Dimitri
12:35 pm on Jul 20, 2022 (gmt 0)
@Dimitri yes for existing page.
And what alternative to the 200 code, do you have in mind? What other codes are you considering returning?
lucy24
4:02 pm on Jul 20, 2022 (gmt 0)
The question makes it sound as if you are choosing to return a 200 code manually, where the server--if left to its own resources--would return something else. Or possibly vice versa, as in a CMS where the server response to all page requests is 200, and then it's up to the CMS to return a 300- or 400-class response where appropriate.
This, in turn, makes it sound as if there's something you're not telling us.