Standard library / net/http
http.StatusBadRequest
HTTP status 400. The server cannot process a request due to a perceived client error. Expected stdout: '400\n'.
Formal Syntax & Structure
go syntaxgo
const StatusBadRequest = 400Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusBadRequest) }
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) }}