We can have a custom 404 by removing the 404.md file in docs and adding html file to custom_themes. reference[reference](https://www.mkdocs.org/user-guide/customizing-your-theme/#using-the-theme-custom_dir)