MCPcopy
hub / github.com/fastify/fastify / setNotFoundHandler

Method setNotFoundHandler

types/instance.d.ts:452–452  ·  types/instance.d.ts::FastifyInstance.setNotFoundHandler

* Set the 404 handler

(
    handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
  )

Source from the content-addressed store, hash-verified

450 * Set the 404 handler
451 */
452 setNotFoundHandler<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig extends ContextConfigDefault = ContextConfigDefault, TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault, SchemaCompiler extends FastifySchema = FastifySchema> (
453 handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
454 ): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>;
455

Callers 10

fastifyFunction · 0.80
404s.test.jsFile · 0.80
pluginFunction · 0.80
instance.tst.tsFile · 0.80
reply.test.jsFile · 0.80
options.test.jsFile · 0.80

Calls

no outgoing calls

Tested by 1

pluginFunction · 0.64