Custom 404 page

Hello how i can use custom 404 page in Slim v4?

In Slim 4 it’s possible to add a custom error handler to the ErrorMiddleware .

Here you can find some examples how to add a custom error handler