Standard library / net/http
http.StatusHTTPVersionNotSupported
HTTP status 505. The server does not support the HTTP major version. Expected stdout: '505\n'.
Formal Syntax & Structure
go syntaxgo
const StatusHTTPVersionNotSupported = 505Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusHTTPVersionNotSupported) }
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) }}