Standard library / net/http
http.StatusUpgradeRequired
HTTP status 426. The server requires a different protocol. Expected stdout: '426\n'.
Formal Syntax & Structure
go syntaxgo
const StatusUpgradeRequired = 426Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusUpgradeRequired) }
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) }}