/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-not-found-15fce08df476-not-found-s0618-c0000.md
Not Found - hono-docs
Not Found Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt not found Summary app.notFound allows y...
Not Found
Source evidence: /Sources/raw/honojshono/honojshono.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.
:::