packagehandlersimport"github.com/gofiber/fiber/v2"funcServerErrorHandler(ctx*fiber.Ctx,errerror)error{code:=fiber.StatusInternalServerErrormsg:="Internal Server Error"ife,ok:=err.(*fiber.Error);ok{code=e.Codemsg=e.Message}elseiferr!=nil{msg=err.Error()}returnctx.Status(code).SendString(msg)}