Standard library / net/http

http.StatusNotAcceptable

HTTP status 406. No acceptable representation is available under negotiation preferences. Expected stdout: '406\n'.

Formal Syntax & Structure

go syntaxgo
const StatusNotAcceptable = 406

Working Example

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