Unify error handling and HTTP statuses

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-07-11 16:18:17 +08:00
parent 61b33ae0e3
commit cb8f587e30
113 changed files with 408 additions and 166 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import (
rankingschema "honoka-chan/internal/schema/ranking"
"honoka-chan/internal/session"
honokautils "honoka-chan/internal/utils"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
@@ -103,7 +104,7 @@ func live(ctx *gin.Context) {
Page: page,
},
ReleaseInfo: []any{},
StatusCode: 200,
StatusCode: http.StatusOK,
})
}