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