Standard library / net/http
http.StatusNetworkAuthenticationRequired
HTTP status 511. Network access requires authentication, typically at a captive portal. Expected stdout: '511\n'.
Formal Syntax & Structure
go syntaxgo
const StatusNetworkAuthenticationRequired = 511Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusNetworkAuthenticationRequired) }
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) }}