-
Notifications
You must be signed in to change notification settings - Fork 5
/
status.go
27 lines (25 loc) · 1005 Bytes
/
status.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package gig
// Status is a Gemini status code type.
type Status int
// Gemini status codes as documented by specification.
// See: https://gemini.circumlunar.space/docs/spec-spec.txt
const (
StatusInput Status = 10
StatusSensitiveInput Status = 11
StatusSuccess Status = 20
StatusRedirectTemporary Status = 30
StatusRedirectPermanent Status = 31
StatusTemporaryFailure Status = 40
StatusServerUnavailable Status = 41
StatusCGIError Status = 42
StatusProxyError Status = 43
StatusSlowDown Status = 44
StatusPermanentFailure Status = 50
StatusNotFound Status = 51
StatusGone Status = 52
StatusProxyRequestRefused Status = 53
StatusBadRequest Status = 59
StatusClientCertificateRequired Status = 60
StatusCertificateNotAuthorised Status = 61
StatusCertificateNotValid Status = 62
)