Free auditStart free
GuideShopify · Errors

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.

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 withChatGPTClaudePerplexityGoogleAI Mode
01The 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: 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.

02How 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.

03Your 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, 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.

04Check 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: Google says 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.

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.

01Can 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.

02How 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. 01Templates | Shopify Help Centerhelp.shopify.com · checked 2026-11-01
  2. 02404 template | Shopify developer docsshopify.dev · checked 2026-11-01
  3. 03Liquid objects: request | Shopify developer docsshopify.dev · checked 2026-11-01
  4. 04templates/404.json | Shopify Dawn themeraw.githubusercontent.com · checked 2026-11-01
  5. 05main-404.liquid | Shopify Dawn theme on GitHubraw.githubusercontent.com · checked 2026-11-01
  6. 06HTTP status codes, network and DNS errors | Google Search Centraldevelopers.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane