Hi @Bartosz Wesołowski ,
IIS has a module called Erro Pages can custom error page. You can add status code which you want to custom error page. You can also replace the error page while IIS has provided error page for specific status code.
If you follow the path of IIS error page C:\inetpub\custerr
, you will find many folder named different languages. So IIS has already defined different error pages in different languages for you in advance.
So the easiest way is that you can directly replace the error pages in these folders. As long as it is a 404 error, IIS will respond to a customized page. IIS will determine which language the error page should be responded to based on the requesting client.
You can also define the default error page.
You can choose the path of the default page and the way to execute the path: file, error page URL and redirection.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Bruce Zhang