Standard library / net/http
http.StatusNotImplemented
HTTP status 501. The server lacks functionality needed to fulfill the request. Expected stdout: '501\n'.
Formal Syntax & Structure
go syntaxgo
const StatusNotImplemented = 501Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusNotImplemented) }
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) }}