1
0
rngpotd/return-code.go
Konstantin Demin fe1fb1935c
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/manual/latest Pipeline was successful
minor fixes
2024-07-21 01:14:36 +03:00

47 lines
1.1 KiB
Go

package main
import (
"github.com/gofiber/fiber/v2"
)
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!
}
n_rngRetCodes = 1
)