How to get Default No Route URL Programmatically Magento 2?

Get No Route Url Programmatically Magento 2 to redirect to 404 Not found page.

You can redirect to No Route page using ScopeConfigInterface and UrlInterface to not found action. The default value for the No Route page is the cms/noroute/index.

Fetch Store Configuration value for the No Route path, and pass that value to the URL interface.

You can see the no route path value from the Admin panel by login to your Magento Admin panel,

Go To Stores -> Configuration -> General -> Web -> Default Pages -> Default No-route URL.

Call from the template or PHP class,
echo $noRouteUrl = $this->getNoRouteUrl();