/Knowledge/sources/honojs__hono/llms-full/app-hono-not-found--3da4c9308b05.md
App - Hono: Not Found - hono-docs
App Hono: Not Found Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt not found Summary app.notFound all...
App - Hono: Not Found
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#not-found
Summary
app.notFound allows you to customize a Not Found Response. ts twoslash import { Hono } from 'hono' const app = new Hono() // ---cut--- app.notFound((c) => { return c.text('Custom 404 Message', 404) }) :::warning The notFound m...
Content
app.notFound allows you to customize a Not Found Response.
import { Hono } from 'hono'
const app = new Hono()
// ---cut---
app.notFound((c) => {
return c.text('Custom 404 Message', 404)
})
:::warning
The notFound method is only called from the top-level app. For more information, see this issue.
:::
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#not-found",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / App - Hono > Not Found",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 618,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "App - Hono: Not Found",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}