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