Standard library / net/http
http.StatusNotFound
HTTP status 404. The target resource is not found or its existence is not disclosed. Expected stdout: '404\n'.
Formal Syntax & Structure
go syntaxgo
const StatusNotFound = 404Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusNotFound) }
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) }}