Layout not found page might appear instead of the custom 404 page. The issue occurs when the "Enforce Version Presence" feature is enabled and the URL refers to the non-existing language version. It affects SXA sites.
To resolve the issue, consider the following options: