refactor(backend): standardize errors and simplify configuration and test setup

This commit is contained in:
TakuyaYagam1 committed 2026-10-05 16:15:30 +03:00
1 parent 1535c19b8c
commit 138666a7bb
92 files changed
+3994 -210

No files matched your search

@@ -40,6 +40,7 @@ func (handler *HealthHandler) Readyz(w http.ResponseWriter, r *http.Request) {
func writeStatus(w http.ResponseWriter, status int, value string) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(status)
// The status is already committed; a failed write cannot be retried here.
_ = json.NewEncoder(w).Encode(struct {
Status string `json:"status"`
}{Status: value})