feat(httpx): return 503 when a dependency is unavailable

This commit is contained in:
kk10
2026-10-06 18:45:31 +03:00
parent b540577cf9
commit d7002b4dfe
6 changed files with 44 additions and 11 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ func (h *AuthHandler) CreateSession(w http.ResponseWriter, r *http.Request) {
return
}
if err != nil {
httpx.WriteInternalError(w, requestID)
httpx.WriteInternalError(w, requestID, err)
return
}
@@ -65,7 +65,7 @@ func (h *AuthHandler) RevokeSession(w http.ResponseWriter, r *http.Request) {
return
}
if err != nil {
httpx.WriteInternalError(w, requestID)
httpx.WriteInternalError(w, requestID, err)
return
}