(w http.ResponseWriter, msg string, code int)
| 473 | } |
| 474 | |
| 475 | func smtpError(w http.ResponseWriter, msg string, code int) { |
| 476 | w.Header().Set("Content-Type", "application/json") |
| 477 | w.WriteHeader(code) |
| 478 | json.NewEncoder(w).Encode(map[string]any{"message": msg, "code": code}) //nolint:errcheck |
| 479 | } |
no test coverage detected