Error page

The Error page template is rendered when a there is an error or when the requested page doesn't exist.

Available properties

You can use the following properties in the Error page template.

NameTypeDescription
errorstringThe error type
status_codeintegerThe error status code
promoted_articlesarrayAn array of promoted article objects
ticket_formsarrayAn array of ticket form objects
help_centerobjectA help_center object that holds information and settings about the current help center
settingsobjectA settings object with custom settings for the current theme
signed_inbooleanWhether the user is logged in or not
featured_postsarrayAn array of featured post objects

Possible errors and status codes:

ErrorStatus CodeDescription
"unauthorized"401User has to be authenticated to proceed
"forbidden"403User is not allowed to proceed
"not_found"othersPage doesn't exist or there was another problem

Available helpers

You can use any built-in helpers, global helpers, or global advanced helpers in this page template.

Example

<div class="error-page">  <h1>{{t 'oops'}}</h1>
  {{#is error 'unauthorized'}}    <h2>{{link 'sign_in'}}</h2>  {{/is}}
  {{#is error 'forbidden'}}    <h2>{{t 'not_authorized'}}</h2>  {{/is}}
  {{#is error 'not_found'}}    <h2>{{t 'nonexistent_page'}}</h2>    <p>{{t 'mistyped_address_or_moved_page'}}</p>  {{/is}}
  {{#link 'help_center'}}    {{t 'back_to_homepage'}}  {{/link}}</div>