Skip to content

basalt / http/src / NOT_FOUND_RESPONSE

Variable: NOT_FOUND_RESPONSE ​

> const NOT_FOUND_RESPONSE: object

Defined in: http/src/errors.ts:79

The neutral not-found body every adapter serves for an unmatched route (unless the adapter plugin is given notFound: false). One shape across Fastify, Express and Hono — same { error: { code, message } } contract as validation and HttpError responses, and no framework-fingerprinting HTML or plain-text defaults.

Type Declaration ​

error ​

> readonly error: object

error.code ​

> readonly code: "NOT_FOUND" = 'NOT_FOUND'

error.message ​

> readonly message: "Route not found." = 'Route not found.'

Released under the MIT License.