> For the complete documentation index, see [llms.txt](https://docs.ultramarinastudios.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ultramarinastudios.com/templates/404.md).

# 404

A customer is redirected to the 404 page when they reach an invalid link in your store.

<figure><img src="https://3146423938-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZQuVfmt0J7tzTvfBqG6C%2Fuploads%2FXFXnFPJL8QwoRtWxRxdv%2F404%20Not%20Found%20%E2%80%93%20Primavera%20Precision%202025-04-03%20at%203.44.15%20pm.jpg?alt=media&amp;token=943af59a-3da8-4015-8924-66e58c037eda" alt=""><figcaption><p>404 page on the Primavera demo store</p></figcaption></figure>

{% hint style="info" %}
Ideally, customers only reach your 404 page as a last resort, so be sure to implement URL [redirects](https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect) to make sure that key links are redirected to new pages when that content is no longer available.
{% endhint %}

### Settings

* **Continue shopping link**: Override the "Continue shopping" button URL which goes to <kbd>collections/all</kbd> by default

The Search button links to the search page in order to help the customer find what they were looking for.

If you need to override the page text or first button link, you can do so in the theme [translations](/faqs/how-do-i-edit-the-default-theme-content.md).

{% hint style="info" %}
Can't find the setting you're looking for?  The following settings are explained in detail in common settings:

* Horizontal alignemnt
* Color scheme
* Padding
* Borders
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ultramarinastudios.com/templates/404.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
