1
0
rngpotd/return-code.go
Konstantin Demin 5e5cd22273
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/manual/latest Pipeline was successful
minor improvements
2024-07-26 11:07:36 +03:00

50 lines
1.1 KiB
Go

package main
import (
"github.com/gofiber/fiber/v2"
)
const (
n_rngRetCodes = len(rngRetCodes)
)
var (
rngRetCodes = [...]int{
fiber.StatusTeapot,
fiber.StatusNonAuthoritativeInformation,
fiber.StatusNoContent,
fiber.StatusResetContent,
fiber.StatusMultiStatus,
fiber.StatusAlreadyReported,
fiber.StatusIMUsed,
267, // https://github.com/maximal/http-267
fiber.StatusSwitchProxy,
fiber.StatusPaymentRequired,
fiber.StatusNotAcceptable,
fiber.StatusProxyAuthRequired,
fiber.StatusConflict,
fiber.StatusGone,
fiber.StatusPreconditionFailed,
fiber.StatusRequestEntityTooLarge,
fiber.StatusRequestURITooLong,
fiber.StatusUnsupportedMediaType,
fiber.StatusRequestedRangeNotSatisfiable,
fiber.StatusExpectationFailed,
fiber.StatusMisdirectedRequest,
fiber.StatusUnprocessableEntity,
fiber.StatusLocked,
fiber.StatusFailedDependency,
fiber.StatusTooEarly,
fiber.StatusUpgradeRequired,
fiber.StatusPreconditionRequired,
fiber.StatusTooManyRequests,
fiber.StatusRequestHeaderFieldsTooLarge,
444, // nginx gone wild
fiber.StatusUnavailableForLegalReasons,
499, // try harder comrade!
}
)