Hide Page not Found error when using st.Navigation

I don’t know if this even counts as debugging, but I still need some help.
I am using st.navigation but some of my users want to save specific urls, this means they recieve a “Page not found” error (as described here in the documentation)

But, behind the error message, it works. The page loads fine. I only want the error message gone.