package response import ( "fmt" "net/http" "github.com/Teajey/rsvp" ) func NotFound() rsvp.Response { return Error(http.StatusNotFound, "Page not found") } func Error(status int, format string, a ...any) rsvp.Response { return rsvp.Response{ Body: fmt.Sprintf(format, a...), Status: status, } } func Data(templateName string, body any) rsvp.Response { return rsvp.Response{ Body: body, TemplateName: templateName, } }