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

Function writeBusyMessage

internal/server/server.go:3065–3068  ·  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

3063// writeBusyMessage is writeBusy with a caller-chosen message, for the one
3064// path whose truth differs (account deletion after Stripe was cancelled).
3065func writeBusyMessage(w http.ResponseWriter, message string) {
3066 w.Header().Set("Retry-After", "2")
3067 writeError(w, http.StatusServiceUnavailable, "database_busy", message)
3068}
3069
3070// writeBusyOutcomeUnknown is the 503 for a WRITE that may have committed. Its
3071// 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