small fix, don't worry about it

This commit is contained in:
Tomas Dvorak
2026-04-10 12:02:36 +02:00
parent 08bd0c6e5c
commit 08cb5754f3
638 changed files with 57332 additions and 34706 deletions
@@ -0,0 +1,25 @@
package api
import (
"net/http"
"github.com/gin-gonic/gin"
)
func respondFeatureUnavailable(c *gin.Context, feature string, details string) {
c.JSON(http.StatusNotImplemented, gin.H{
"error": "Feature not implemented",
"code": "FEATURE_NOT_IMPLEMENTED",
"feature": feature,
"details": details,
})
}
func respondDependencyUnavailable(c *gin.Context, dependency string, details string) {
c.JSON(http.StatusServiceUnavailable, gin.H{
"error": "Dependency unavailable",
"code": "DEPENDENCY_UNAVAILABLE",
"dependency": dependency,
"details": details,
})
}