Standard library / net/http
http.StatusNoContent
HTTP status 204. The request succeeded and no response content is sent. Expected stdout: '204\n'.
Formal Syntax & Structure
go syntaxgo
const StatusNoContent = 204Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusNoContent) }
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) }}