Standard library / net/http
http.StatusServiceUnavailable
HTTP status 503. The service is temporarily unavailable; Retry-After may be provided. Expected stdout: '503\n'.
Formal Syntax & Structure
go syntaxgo
const StatusServiceUnavailable = 503Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusServiceUnavailable) }
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) }}