Standard library / net/http
http.StatusAccepted
HTTP status 202. Processing was accepted but has not necessarily completed. Expected stdout: '202\n'.
Formal Syntax & Structure
go syntaxgo
const StatusAccepted = 202Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusAccepted) }
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) }}