Standard library / net/http
http.StatusMisdirectedRequest
HTTP status 421. The request was directed to a server unable or unwilling to produce an authoritative response. Expected stdout: '421\n'.
Formal Syntax & Structure
go syntaxgo
const StatusMisdirectedRequest = 421Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusMisdirectedRequest) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}