# Shopify 404 page

> Where the Shopify 404 template lives, what you can change in the editor, how to add links and search, and how to check the real status code.

Canonical: https://scaplet.com/seo/shopify/404

Guide Shopify Shopify · Errors

Where the Shopify 404 template lives, what you can change in the editor, how to add links and search, and how to check the real status code.

3 min

read

6

sources

Oct 30, 2026

updated

Scaplet Editorial Team

author

In one line

Shopify shows its 404 page when a visitor requests a URL that doesn't exist, using the 404 template in your theme's templates directory. The Help Center says the page has no customizable settings beyond section Custom CSS, so real changes happen in theme code. Shopify's docs don't state the HTTP status, so verify it with curl.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2F404%20(%22Shopify%20404%20page%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2F404%20(%22Shopify%20404%20page%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2F404%20(%22Shopify%20404%20page%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2F404%20(%22Shopify%20404%20page%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 3 minutes.

1. [What Shopify gives you 01](#what-shopify-gives-you)
2. [Make the page useful 02](#make-the-page-useful)
3. [Decide what each dead URL should do 03](#decide-what-each-dead-url-should-do)
4. [Check it worked 04](#check-it-worked)

_01_The 404 template, per Shopify's docs

## What Shopify gives you

Question

### When does it show?

Answer

When a customer tries to visit a link that doesn't exist, such as a product you deleted

Source page

Help Center: Templates

Question

### What can you set in the editor?

Answer

No customizable settings, but you can add section-specific Custom CSS to the 404 page in the theme editor

Source page

Help Center: Templates

Question

### Where is the file?

Answer

`templates/404.json`, in the theme's templates directory

Source page

shopify.dev: 404 template

Question

### Does Liquid know it's a 404?

Answer

Yes: `request.page_type` can be `404`

Source page

shopify.dev: request object

In Dawn, `templates/404.json` just points at a `main-404` section, which holds the [markup](/glossary/structured-data): a translated subtext, a `<h1 class="title">`, and a button linking to `routes.all_products_collection_url`. Shopify's developer docs note that with a JSON template, any HTML or Liquid you add must go in a section the template references.

_02_How it works

## Make the page useful

Shopify's guidance for this template: there are no suggested objects, but it should make clear that the page couldn't be found and give obvious options, such as links to popular pages, a search bar, or a link to your home page or a collection.

Shopify's own example shape, in a section file

```
<h1 class="title">Page not found</h1> <a href="{{ routes.all_products_collection_url }}" class="button">Continue shopping</a>
```

1. 01

### Open the theme code

Find the section your `404.json` references, in Dawn `sections/main-404.liquid`, and duplicate the theme first so you can roll back.
2. 02

### Add the exits

Add links to your top collections and a search form to the section, keeping the `h1` that says the page wasn't found.
3. 03

### Preview an invalid URL

Visit a path you know doesn't exist on the preview theme and confirm the layout, header and links work.

_03_Your call

## Decide what each dead URL should do

If this fits

### Leave it as the 404 page when

- The product or page is gone and nothing equivalent exists.
- The URL was never real, such as a mistyped link or a bot probe.
- You want shoppers to land on the search box and collection links you added.

Or

### Add a redirect when

- A product handle changed and the new page is the same item.
- A retired product has a genuinely close replacement or collection.
- External sites still link to the old URL and you can map it one to one.

Because Google doesn't index URLs that return a `4xx` [status code](/glossary/http-status-codes), a correct 404 is a normal outcome for removed content, not an error to hide. The trouble starts when the status and the page disagree, so the curl check below matters more than the page design.

_04_Check it

## Check it worked

You want the first line to show `404`. Shopify's docs I fetched don't state which status the template returns, so this check is the only proof. A friendly page served with a `200` is a [soft 404](/glossary/soft-404): Google says [Search Console](/glossary/google-search-console) will show a `soft 404` error for a page that looks like an error but returns a success code, and that it doesn't index URLs that return a `4xx` status code. Already indexed URLs that return `4xx` are removed from the index.

**404 or redirect?**Leave a URL as a 404 when nothing replaces it. If a close replacement exists, add a redirect instead, as covered in the [Shopify redirects guide](/seo/shopify/redirects). Don't point every dead URL at the home page.

Read the real status code

```
curl -sI https://your-store.com/this-page-does-not-exist-123 | head -1
```

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Can I edit the Shopify 404 page in the theme editor?

Only a little. The Help Center says it has no customizable settings, but you can add section-specific Custom CSS. To add links or search, edit the section that your theme's 404 template references.

_02_ How do I check my Shopify 404 returns the right status?

Request a nonexistent URL with curl -sI and read the first line. Shopify's docs don't state the status code, and Google flags 200 responses that look like errors as soft 404s.

Sources · 6

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- shopify.com
- shopify.dev
- githubusercontent.com
- google.com

1. 01 [Templates | Shopify Help Center](https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates/404) help.shopify.com · checked 2026-11-01
2. 02 [404 template | Shopify developer docs](https://shopify.dev/docs/storefronts/themes/architecture/templates/404) shopify.dev · checked 2026-11-01
3. 03 [Liquid objects: request | Shopify developer docs](https://shopify.dev/docs/api/liquid/objects/request) shopify.dev · checked 2026-11-01
4. 04 [templates/404.json | Shopify Dawn theme](https://raw.githubusercontent.com/Shopify/dawn/main/templates/404.json) raw.githubusercontent.com · checked 2026-11-01
5. 05 [main-404.liquid | Shopify Dawn theme on GitHub](https://raw.githubusercontent.com/Shopify/dawn/main/sections/main-404.liquid) raw.githubusercontent.com · checked 2026-11-01
6. 06 [HTTP status codes, network and DNS errors | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/http-network-errors) developers.google.com · checked 2026-11-01

## Keep learning

[All platform guides](/seo)

[Learn Shopify SEO Ecommerce](/seo/shopify) [Related Soft 404 Crawling](/glossary/soft-404) [Read next Shopify redirects Ecommerce](/seo/shopify/redirects) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in platform guides
[Sanity XML sitemap](/seo/sanity/xml-sitemap) [Shopify SEO](/seo/shopify)

More in Shopify SEO
[Shopify 404 page](/seo/shopify/404) [Shopify AI crawlers](/seo/shopify/ai-crawlers) [Shopify breadcrumbs](/seo/shopify/breadcrumbs) [Shopify canonical tags](/seo/shopify/canonical-tags) [Shopify favicon](/seo/shopify/favicon) [Shopify Google Analytics](/seo/shopify/google-analytics) [Shopify Google Search Console setup](/seo/shopify/search-console) [Shopify hreflang](/seo/shopify/hreflang) [Shopify image SEO](/seo/shopify/image-seo) [Shopify lazy loading](/seo/shopify/lazy-loading) [Shopify noindex](/seo/shopify/noindex) [Shopify redirects](/seo/shopify/redirects) [Shopify robots.txt](/seo/shopify/robots-txt) [Shopify speed optimization](/seo/shopify/page-speed) [Shopify structured data](/seo/shopify/structured-data) [Shopify titles and meta descriptions](/seo/shopify/title-and-meta) [Shopify XML sitemap](/seo/shopify/xml-sitemap)

Terms on this page
[Structured data](/glossary/structured-data) [HTTP status codes](/glossary/http-status-codes) [Soft 404](/glossary/soft-404) [Google Search Console](/glossary/google-search-console)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
