Standard library / net/http

http.StatusConflict

HTTP status 409. The request conflicts with the current resource state. Expected stdout: '409\n'.

Formal Syntax & Structure

go syntaxgo
const StatusConflict = 409

Working Example

Example Snippetgo
package main
import (  "fmt"  "net/http")
func main() { fmt.Println(http.StatusConflict) }
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)  }}
Go Reference