Standard library / net/http
http.StatusForbidden
HTTP status 403. The server understood the request but refuses authorization. Expected stdout: '403\n'.
Formal Syntax & Structure
go syntaxgo
const StatusForbidden = 403Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusForbidden) }
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) }}