MCPcopy
hub / github.com/fastify/fastify / code

Method code

types/reply.d.ts:49–49  ·  view source on GitHub ↗
(statusCode: Code)

Source from the content-addressed store, hash-verified

47 request: FastifyRequest<RouteGeneric, RawServer, RawRequest, SchemaCompiler, TypeProvider>;
48 server: FastifyInstance;
49 code<Code extends keyof SchemaCompiler['response'] extends never ? ReplyKeysToCodes<keyof RouteGeneric['Reply']> : keyof SchemaCompiler['response'] extends ReplyKeysToCodes<keyof RouteGeneric['Reply']> ? keyof SchemaCompiler['response'] : ReplyKeysToCodes<keyof RouteGeneric['Reply']>>(statusCode: Code): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider, ResolveReplyTypeWithRouteGeneric<RouteGeneric['Reply'], Code, SchemaCompiler, TypeProvider>>;
50 status<Code extends keyof SchemaCompiler['response'] extends never ? ReplyKeysToCodes<keyof RouteGeneric['Reply']> : keyof SchemaCompiler['response'] extends ReplyKeysToCodes<keyof RouteGeneric['Reply']> ? keyof SchemaCompiler['response'] : ReplyKeysToCodes<keyof RouteGeneric['Reply']>>(statusCode: Code): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider, ResolveReplyTypeWithRouteGeneric<RouteGeneric['Reply'], Code, SchemaCompiler, TypeProvider>>;
51 statusCode: number;
52 sent: boolean;

Callers 15

server.jsFile · 0.80
fallbackErrorHandlerFunction · 0.80
setFunction · 0.80
reply.jsFile · 0.80
onSendEndFunction · 0.80
notFoundFunction · 0.80
basic404Function · 0.80
fourOhFourFallBackFunction · 0.80
setErrorStatusCodeFunction · 0.80
testBeforeHandlerHookFunction · 0.80
helperFunction · 0.80

Calls

no outgoing calls

Tested by 8

testBeforeHandlerHookFunction · 0.64
helperFunction · 0.64
customGlobalErrorHandlerFunction · 0.64
customRouteErrorHandlerFunction · 0.64
customRouteErrorHandlerFunction · 0.64
pluginFunction · 0.64
errorHandlerFunction · 0.64
echoBodyFunction · 0.64