Home / Function/ notFoundTemplate() — astro Function Reference

notFoundTemplate() — astro Function Reference

Architecture documentation for the notFoundTemplate() function in 4xx.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6ee37dd6_60fc_54a8_4f87_2108dfca595f["notFoundTemplate()"]
  290d338a_b86f_3c08_2047_f178684bb43d["4xx.ts"]
  6ee37dd6_60fc_54a8_4f87_2108dfca595f -->|defined in| 290d338a_b86f_3c08_2047_f178684bb43d
  91253924_739f_881f_85ec_9ccad58d1384["template()"]
  6ee37dd6_60fc_54a8_4f87_2108dfca595f -->|calls| 91253924_739f_881f_85ec_9ccad58d1384
  style 6ee37dd6_60fc_54a8_4f87_2108dfca595f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/template/4xx.ts lines 152–159

export function notFoundTemplate(pathname: string, message = 'Not found') {
	return template({
		pathname,
		statusCode: 404,
		title: message,
		tabTitle: `404: ${message}`,
	});
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does notFoundTemplate() do?
notFoundTemplate() is a function in the astro codebase, defined in packages/astro/src/template/4xx.ts.
Where is notFoundTemplate() defined?
notFoundTemplate() is defined in packages/astro/src/template/4xx.ts at line 152.
What does notFoundTemplate() call?
notFoundTemplate() calls 1 function(s): template.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free