1package web23import (4 "fmt"5 "io"6 "net/http"7)89func renderStatus(code int) http.HandlerFunc {10 return func(w http.ResponseWriter, _ *http.Request) {11 w.WriteHeader(code)12 io.WriteString(w, fmt.Sprintf("%d %s", code, http.StatusText(code))) // nolint: errcheck13 }14}