# Custom 404 page

**URL:** <https://discourse.slimframework.com/t/custom-404-page/4467>\
**Category:** Questions\
**Created:** [October 28, 2020, 1:52pm UTC](https://discourse.slimframework.com/t/custom-404-page/4467 "2020-10-28T13:52:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![faigalizade](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@faigalizade](https://discourse.slimframework.com/u/faigalizade)\
**Post date:** [October 28, 2020, 1:52pm UTC](https://discourse.slimframework.com/t/custom-404-page/4467/1 "2020-10-28T13:52:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [October 28, 2020, 3:20pm UTC](https://discourse.slimframework.com/t/custom-404-page/4467/2 "2020-10-28T15:20:40Z")

</div>

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