Standard library / net/http
http.StatusUnprocessableEntity
HTTP status 422. The content is syntactically understood but its instructions cannot be processed. Expected stdout: '422\n'.
Formal Syntax & Structure
go syntaxgo
const StatusUnprocessableEntity = 422Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusUnprocessableEntity) }
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) }}