Standard library / net/http

http.StatusFound

HTTP status 302. The resource is temporarily elsewhere; clients may rewrite POST to GET. Expected stdout: '302\n'.

Formal Syntax & Structure

go syntaxgo
const StatusFound = 302

Working Example

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