import { FastifyReply } from "fastify" ; export function sendInvalidParamError ( res , param ) { res . status ( 500 ) . send ( { success : false , error : "Internal Server Error" , message : `Missing or invalid ${ param } parameter` , } ) ; } export function sendErrorMessage ( res , error ) { res . status ( 500 ) . send ( { success : false , error : "Internal Server Error" , message : error . message , } ) ; }