Language selection

Search


404 error page template: Canada.ca design

A 404 error is generated when someone tries to access a page that cannot be found.

This 404 error page template provides the user with suggestions for resolving the error and contains links to key sections that may be helpful. There are two versions of this template:

On this page

When to use

Use this template to create a standard place for users to go to when encountering a 404 error.

What to avoid

Don't use this template for any purpose other than indicating a 404 error.

Make sure the page includes, at a minimum, one rescue link (for example, the Canada.ca homepage). Do not provide irrelevant links that do not help the user navigate back to Government of Canada web content.

For the bilingual version, don't mix the languages within the same content block, paragraph or sentence.

Content and design

Find content and design specifications and visual examples.

Content specifications

Use "Page not found" for the H1 or page title.

Include a sentence stating that the page the user is looking for may have been moved or deleted.

Offer tips for what the user can try to resolve the error. This can include the following information:

Include the text "You may be looking for:" followed by a bulleted list of no more than 10 links. At the top of the list include these three common pages on Canada.ca:

After those links, you can list some of the most requested pages specific to your institution. Here are some most requested pages on Canada.ca that you can also include:

Additional content specifications for bilingual version

In addition to the content that is laid out in the general specifications, for the bilingual page include two anchor links that will appear above each language when the page resizes for mobile.

Interactions

Design specifications

Additional design specifications for bilingual version

Use the following layouts for the bilingual version:

Because language preference isn't known, limit the elements in the header and footer to the following:

Interactions

When the bilingual version of the page resizes for mobile, the English and French content will be stacked. When the content is stacked, a jump link should appear above each language that allows the user to jump from one language to the other.

Visual examples

Unilingual 404 error page - large screen
Unilingual 404 error page - large screen. Text version below:
Image description: unilingual 404 error page - large screen

At the top of the page is an H1 titled "Page not found," which is underlined with a short thick red line. Below the H1 is a danger label with the text "404 error."

Following the label is a paragraph providing instructions to the user for how to find the page they are looking for.

Below the paragraph is the sentence "You may be looking for" with a bulleted list of links under it.

Bilingual 404 error page - large screen
Bilingual 404 error page - large screen. Text version below:
Image description: bilingual 404 error page - large screen

The bilingual version of the 404 error page appears in two columns.

The first column has an H2 titled "Page not found." Below the H2 is a danger label with the text "404 error."

Following the label is a paragraph providing instructions to the user for how to find the page they are looking for.

Below the paragraph is the lead-in sentence "You may be looking for:" and under it is a bulleted list of links to most requested pages on Canada.ca.

After the list of links there is a short search bar with placeholder text that says "Search Canada.ca." There is a search button with a magnifying glass icon beside the search bar.

The second column has an H2 titled "Page non trouvée." Below the H2 is a danger label with the text "Erreur 404."

Following the label is a paragraph providing instructions to the user for how to find the page they are looking for.

Below the paragraph is the lead-in sentence "Vous cherchez peut-être l'une des pages suivantes : " and under it is a bulleted list of links to most requested pages on Canada.ca.

After the list of links there is a short search bar with placeholder text that says "Rechercher dans Canada.ca." There is a search button with a magnifying glass icon beside the search bar.

Bilingual 404 error page - small screen
Bilingual 404 error page - small screen. Text version below:
Image description: bilingual 404 error page - small screen

The bilingual version of the 404 error page appears in one column.

At the top of the page is an H2 titled "Page not found." Below the H2 is a danger label with the text "404 error."

Following the label is a link that says "Aller à la version française."

After the link is a paragraph providing instructions to the user for how to find the page they are looking for.

Below the paragraph is the lead-in sentence "You may be looking for:" and under it is a bulleted list of links to most requested pages on Canada.ca.

After the list of links there is a short search bar with placeholder text that says "Search Canada.ca." There is a search button with a magnifying glass icon beside the search bar.

Next there is a second H2 titled "Page non trouvée." Below this H2 is a danger label with the text "Erreur 404."

Following the label is a link that says "Go to the English version."

After the link is a paragraph providing instructions to the user for how to find the page they are looking for.

Below the paragraph is the lead-in sentence "Vous cherchez peut-être l'une des pages suivantes : " and under it is a bulleted list of links to most requested pages on Canada.ca.

After the list of links there is a short search bar with placeholder text that says "Rechercher dans Canada.ca." There is a search button with a magnifying glass icon beside the search bar.

How to implement

Find working examples and code for implementing the 404 error page.

GCWeb (WET) theme implementation reference

The implementation reference includes how to configure the 404 error page.

Page details

Date modified: