honestjs
Version:
HonestJS - a modern web framework built on top of Hono
15 lines (14 loc) • 514 B
TypeScript
import type { Context } from 'hono';
/**
* Handler for managing 404 Not Found responses
* Provides a consistent way to handle requests to non-existent routes
*/
export declare class NotFoundHandler {
/**
* Creates a middleware function that handles 404 Not Found responses
* @returns A middleware function that returns a JSON response with a 404 status
*/
static handle(): (c: Context) => Promise<Response & import("hono").TypedResponse<{
message: string;
}, 404, "json">>;
}