LazyLoading Invalid links handling

My PWA is using Lazy Loading.

When I try to access a “route” link with a segment not related to some view I get an error.

It’s a very ugly error. What I want to do is to set an error screen to show a pretty invalid screen message.

How to handle invalid links errors?