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
- https://www.slimframework.com/docs/v4/middleware/error-handling.html
 - https://github.com/odan/slim4-skeleton/blob/master/src/Handler/DefaultErrorHandler.php
 - https://github.com/slimphp/Slim-Skeleton/blob/master/src/Application/Handlers/HttpErrorHandler.php
 - https://odan.github.io/2020/05/27/slim4-error-handling.html#catching-404-not-found-errors