A 404 page error appears when a website is active, but the specific page within it doesn’t exist. A different error appears if the whole website you’re visiting is unavailable.
Page of the website which doesn't exist or deleted from the website and are not accessible give 404 error. Website shouldn't have 404 error page in the website, as it is considered as one of the good SEO practice.