MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / writeBusyMessage

Function writeBusyMessage

internal/server/server.go:2972–2975  ·  view source on GitHub ↗

writeBusyMessage is writeBusy with a caller-chosen message, for the one path whose truth differs (account deletion after Stripe was cancelled).

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

2970// writeBusyMessage is writeBusy with a caller-chosen message, for the one
2971// path whose truth differs (account deletion after Stripe was cancelled).
2972func writeBusyMessage(w http.ResponseWriter, message string) {
2973 w.Header().Set("Retry-After", "2")
2974 writeError(w, http.StatusServiceUnavailable, "database_busy", message)
2975}
2976
2977// writeBusyOutcomeUnknown is the 503 for a WRITE that may have committed. Its
2978// text says to check before trying again, so it carries no Retry-After: that

Callers 3

writeBusyFunction · 0.85
writeStoreErrorBusyAsFunction · 0.85
writeStripeCancelledBusyFunction · 0.85

Calls 3

writeErrorFunction · 0.85
SetMethod · 0.45
HeaderMethod · 0.45

Tested by

no test coverage detected