(triggered bool)
| 647 | } |
| 648 | |
| 649 | func fallbackReason(triggered bool) string { |
| 650 | if triggered { |
| 651 | return "primary backend execution failed, fallback applied" |
| 652 | } |
| 653 | return "" |
| 654 | } |
| 655 | |
| 656 | func writeJSON(w http.ResponseWriter, status int, v any) { |
| 657 | w.Header().Set("Content-Type", "application/json") |