Standard library / net/http

http.StatusUnavailableForLegalReasons

HTTP status 451. Access is unavailable for legal reasons. Expected stdout: '451\n'.

Formal Syntax & Structure

go syntaxgo
const StatusUnavailableForLegalReasons = 451

Working Example

Example Snippetgo
package main
import (  "fmt"  "net/http")
func main() { fmt.Println(http.StatusUnavailableForLegalReasons) }
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)  }}
Go Reference