Standard library / net/http
http.StatusExpectationFailed
HTTP status 417. The expectation in Expect cannot be met. Expected stdout: '417\n'.
Formal Syntax & Structure
go syntaxgo
const StatusExpectationFailed = 417Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusExpectationFailed) }
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) }}