Google's John Mueller responded to a concern in the Reddit forums that when it comes to the Salesforce Commerce Cloud, the only real way to use a 404 page not found, is not to use a 404 but a 410 status code. John Mueller of Google said "404 is fine. 410 is fine," trying to reassure this person that both should be fine and not to be concerned....
-
Google: 410 Status Code or 404 Status Code Are Both Fine
seroundtable.com