// Package pkg ...
package pkg

import "net/http"

func fn() {
	// Check all the supported functions
	http.Error(nil, "", http.StatusVariantAlsoNegotiates)         //@ diag(`http.StatusVariantAlsoNegotiates`)
	http.Redirect(nil, nil, "", http.StatusVariantAlsoNegotiates) //@ diag(`http.StatusVariantAlsoNegotiates`)
	http.StatusText(http.StatusVariantAlsoNegotiates)             //@ diag(`http.StatusVariantAlsoNegotiates`)
	http.RedirectHandler("", http.StatusVariantAlsoNegotiates)    //@ diag(`http.StatusVariantAlsoNegotiates`)

	// Don't flag literals with no known constant
	http.StatusText(600)

	// Don't flag constants
	http.StatusText(http.StatusAccepted)

	// Don't flag items on the whitelist (well known codes)
	http.StatusText(404)

	http.Error(fn2())
}

func fn2() (http.ResponseWriter, string, int) { return nil, "", 0 }
