Standard library / net/http
http.StatusVariantAlsoNegotiates
HTTP status 506. A negotiation configuration error caused a variant to negotiate itself. Expected stdout: '506\n'.
Formal Syntax & Structure
go syntaxgo
const StatusVariantAlsoNegotiates = 506Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusVariantAlsoNegotiates) }
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) }}