Custom 404 Pages

Learn about custom 404 pages in Gatsby.

Introduction

Throughout the development of our Lark project, we have come across the screen below multiple times. We get this page displayed when we hit or visit a link that does not exist on the site. This page is the default 404 page created by Gatsby and is only visible during local development. It is useful as it helps us quickly see existing pages that we have in the project. This page is not visible in the production build. For that, Gatsby allows us to use a custom 404 page.

Get hands-on with 1200+ tech skills courses.