Skip to content

Error template

Storefront HTML error response for 403, 404 or 500.

Output: page body inside the storefront layout.

Shared structures available in recorded contexts: shop, branding, theme, urls, page, navigation, labels, security, footer, cartPreview, accountHeader.

Field Type Meaning Availability
viewModel.errorPage object Error page data; check child fields before use. When the parent is provided; check optional fields.
viewModel.errorPage.code string Code value supplied for this context. When the parent is provided; check optional fields.
viewModel.errorPage.eyebrow string Eyebrow value supplied for this context. When the parent is provided; check optional fields.
viewModel.errorPage.homeLabel string Prepared home display text. When the parent is provided; check optional fields.
viewModel.errorPage.message string Message value supplied for this context. When the parent is provided; check optional fields.
viewModel.errorPage.title string Title value supplied for this context. When the parent is provided; check optional fields.
viewModel.search object Search data; check child fields before use. When the parent is provided; check optional fields.
viewModel.search.isEnabled boolean Whether enabled applies; use for display only. When the parent is provided; check optional fields.
viewModel.wishlist object Wishlist data; check child fields before use. When the parent is provided; check optional fields.
viewModel.wishlist.isEmpty boolean Whether empty applies; use for display only. When the parent is provided; check optional fields.
viewModel.wishlist.itemCount number Item count numeric value. When the parent is provided; check optional fields.
viewModel.wishlist.items array Prepared items collection; may be empty. When the parent is provided; check optional fields.
viewModel.wishlist.productIdMap object Product id map data; check child fields before use. When the parent is provided; check optional fields.
viewModel.wishlist.productIds array Prepared product ids collection; may be empty. When the parent is provided; check optional fields.
viewModel.wishlist.wishlistId number wishlist identifier; do not load data with it. When the parent is provided; check optional fields.
viewModel.wishlist.wishlistKey string Wishlist key value supplied for this context. When the parent is provided; check optional fields.

The reference package uses its bundled theme CSS, Bootstrap and theme JavaScript. Account and checkout controls use the bundled checkout script. Partials use their caller’s resolved assets.

<cfset viewModel = routeConfig.viewModel>
<cfoutput><h1>#encodeForHtml(viewModel.page.title)#</h1></cfoutput>

Use the page-specific structures above for the remaining content.

Use prepared URLs and labels. Encode plain text and HTML attributes; preserve only explicitly prepared HTML.