Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / lib/hono / NotFoundHandlerOptions

Interface: NotFoundHandlerOptions

Defined in: src/lib/hono/not-found-handler.ts:22

Options for notFoundHandler.

Properties

autoInstance?

optional autoInstance?: boolean

Defined in: src/lib/hono/not-found-handler.ts:32

When true, populate instance from the request path (c.req.path).

Default: false, matching problemDetailsErrorHandler's own default.


defaultType?

optional defaultType?: string

Defined in: src/lib/hono/not-found-handler.ts:26

Default type URI when typePrefix is not set. Defaults to "about:blank".


typePrefix?

optional typePrefix?: string

Defined in: src/lib/hono/not-found-handler.ts:24

Prefix for the type URI. When set, a status-derived slug is appended.