---
title: "Discussion on \"How to create a custom 404 page in NextJS\" | Hashnode"
description: "Discussion on \"How to create a custom 404 page in NextJS\". Learn how to create a custom 404 page in your NextJS app and replace the default one in a few short steps. Code files available on GitHub"
url: "https://hashnode.com/posts/how-to-create-a-custom-404-page-in-nextjs/62d5888c3060d03288d9a85d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create a custom 404 page in NextJS](https://eke.hashnode.dev/how-to-create-a-custom-404-page-in-nextjs?utm_source=hashnode&utm_medium=feed)

Learn how to create a custom 404 page in your NextJS app and replace the default one in a few short steps. Code files available on GitHub

Jul 18, 2022 · 3 min read · eke.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Victor Eke](https://hashnode.com/@Eke)

@Eke · Lagos, Nigeria

  
[View profile](https://hashnode.com/@Eke)

Software developer specializing in front-end development and open-source, currently pursuing a bachelors degree in computer science.

My expertise lies in building interactive web applications on the client side. Primarily working with technologies like JavaScript, Next.js, TypeScript and Python. I strongly believe in continuous learning and improving myself, so I try my best to learn in any situation possible, unfavorable or not. Beyond learning, I enjoy writing technical articles and creating projects that both inspire and benefit fellow developers.

## Responses 3

Markdown supported · ⌘↵ to post

[Rodgers Nyangweso](https://hashnode.com/@Nyangweso)

[Jun 30, 2024](https://hashnode.com/posts/how-to-create-a-custom-404-page-in-nextjs/62d5888c3060d03288d9a85d/comment/66816086b237dc6469230dc6)

great

[Idris Abdul-Lateef](https://hashnode.com/@eedris)

[Jul 22, 2022](https://hashnode.com/posts/how-to-create-a-custom-404-page-in-nextjs/62d5888c3060d03288d9a85d/comment/62da6569e3738c59b0b7ae3d)

Very helpful article!

[Victor Eke](https://hashnode.com/@Eke)

[Jul 22, 2022](https://hashnode.com/posts/how-to-create-a-custom-404-page-in-nextjs/62d5888c3060d03288d9a85d/comment/62da6569e3738c59b0b7ae3d#reply-62daaa01e3b09e67488856b5)

I'm glad you found it helpful, Idris. ⚡

[Ibrahim Nergiz](https://hashnode.com/@nergiz)

[Jul 22, 2022](https://hashnode.com/posts/how-to-create-a-custom-404-page-in-nextjs/62d5888c3060d03288d9a85d/comment/62da568be3738c59b0b7aa58)

Very nice error page. Like it! ✌️

In other error cases, pages can be made by changing the error code and the message. Even a general page structure can be created with **\_error.js**.

[Victor Eke](https://hashnode.com/@Eke)

[Jul 22, 2022](https://hashnode.com/posts/how-to-create-a-custom-404-page-in-nextjs/62d5888c3060d03288d9a85d/comment/62da568be3738c59b0b7aa58#reply-62daa9e4e3b09e67488856aa)

Exactly. Will probably share that in another article. Thanks for reading, Ibrahim. ⚡
