ss/statuses/main.go

76 lines
3.9 KiB
Go

package statuses
import (
"net/http"
)
type Status int
const (
Continue Status = http.StatusContinue
SwitchingProtocols = http.StatusSwitchingProtocols // RFC 9110, 15.2.2
Processing = http.StatusProcessing // RFC 2518, 10.1
EarlyHints = http.StatusEarlyHints // RFC 8297
OK = http.StatusOK // RFC 9110, 15.3.1
Created = http.StatusCreated // RFC 9110, 15.3.2
Accepted = http.StatusAccepted // RFC 9110, 15.3.3
NonAuthoritativeInfo = http.StatusNonAuthoritativeInfo // RFC 9110, 15.3.4
NoContent = http.StatusNoContent // RFC 9110, 15.3.5
ResetContent = http.StatusResetContent // RFC 9110, 15.3.6
PartialContent = http.StatusPartialContent // RFC 9110, 15.3.7
MultiStatus = http.StatusMultiStatus // RFC 4918, 11.1
AlreadyReported = http.StatusAlreadyReported // RFC 5842, 7.1
IMUsed = http.StatusIMUsed // RFC 3229, 10.4.1
MultipleChoices = http.StatusMultipleChoices // RFC 9110, 15.4.1
MovedPermanently = http.StatusMovedPermanently // RFC 9110, 15.4.2
Found = http.StatusFound // RFC 9110, 15.4.3
SeeOther = http.StatusSeeOther // RFC 9110, 15.4.4
NotModified = http.StatusNotModified // RFC 9110, 15.4.5
UseProxy = http.StatusUseProxy // RFC 9110, 15.4.6
TemporaryRedirect = http.StatusTemporaryRedirect // RFC 9110, 15.4.8
PermanentRedirect = http.StatusPermanentRedirect // RFC 9110, 15.4.9
BadRequest = http.StatusBadRequest // RFC 9110, 15.5.1
Unauthorized = http.StatusUnauthorized // RFC 9110, 15.5.2
PaymentRequired = http.StatusPaymentRequired // RFC 9110, 15.5.3
Forbidden = http.StatusForbidden // RFC 9110, 15.5.4
NotFound = http.StatusNotFound // RFC 9110, 15.5.5
MethodNotAllowed = http.StatusMethodNotAllowed // RFC 9110, 15.5.6
NotAcceptable = http.StatusNotAcceptable // RFC 9110, 15.5.7
ProxyAuthRequired = http.StatusProxyAuthRequired // RFC 9110, 15.5.8
RequestTimeout = http.StatusRequestTimeout // RFC 9110, 15.5.9
Conflict = http.StatusConflict // RFC 9110, 15.5.10
Gone = http.StatusGone // RFC 9110, 15.5.11
LengthRequired = http.StatusLengthRequired // RFC 9110, 15.5.12
PreconditionFailed = http.StatusPreconditionFailed // RFC 9110, 15.5.13
RequestEntityTooLarge = http.StatusRequestEntityTooLarge // RFC 9110, 15.5.14
RequestURITooLong = http.StatusRequestURITooLong // RFC 9110, 15.5.15
UnsupportedMediaType = http.StatusUnsupportedMediaType // RFC 9110, 15.5.16
RequestedRangeNotSatisfiable = http.StatusRequestedRangeNotSatisfiable // RFC 9110, 15.5.17
ExpectationFailed = http.StatusExpectationFailed // RFC 9110, 15.5.18
Teapot = http.StatusTeapot // RFC 9110, 15.5.19 (Unused)
MisdirectedRequest = http.StatusMisdirectedRequest // RFC 9110, 15.5.20
UnprocessableEntity = http.StatusUnprocessableEntity // RFC 9110, 15.5.21
Locked = http.StatusLocked // RFC 4918, 11.3
FailedDependency = http.StatusFailedDependency // RFC 4918, 11.4
TooEarly = http.StatusTooEarly // RFC 8470, 5.2.
UpgradeRequired = http.StatusUpgradeRequired // RFC 9110, 15.5.22
PreconditionRequired = http.StatusPreconditionRequired // RFC 6585, 3
TooManyRequests = http.StatusTooManyRequests // RFC 6585, 4
RequestHeaderFieldsTooLarge = http.StatusRequestHeaderFieldsTooLarge // RFC 6585, 5
UnavailableForLegalReasons = http.StatusUnavailableForLegalReasons // RFC 7725, 3
InternalServerError = http.StatusInternalServerError // RFC 9110, 15.6.1
NotImplemented = http.StatusNotImplemented // RFC 9110, 15.6.2
BadGateway = http.StatusBadGateway // RFC 9110, 15.6.3
ServiceUnavailable = http.StatusServiceUnavailable // RFC 9110, 15.6.4
GatewayTimeout = http.StatusGatewayTimeout // RFC 9110, 15.6.5
HTTPVersionNotSupported = http.StatusHTTPVersionNotSupported // RFC 9110, 15.6.6
VariantAlsoNegotiates = http.StatusVariantAlsoNegotiates // RFC 2295, 8.1
InsufficientStorage = http.StatusInsufficientStorage // RFC 4918, 11.5
LoopDetected = http.StatusLoopDetected // RFC 5842, 7.2
NotExtended = http.StatusNotExtended // RFC 2774, 7
NetworkAuthenticationRequired = http.StatusNetworkAuthenticationRequired // RFC 6585, 6
)