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)
| 3063 | // writeBusyMessage is writeBusy with a caller-chosen message, for the one |
| 3064 | // path whose truth differs (account deletion after Stripe was cancelled). |
| 3065 | func 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 |
no test coverage detected