2024-07-19 16:52:06 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
|
|
|
|
2024-07-26 11:07:36 +03:00
|
|
|
const (
|
|
|
|
n_rngRetCodes = len(rngRetCodes)
|
|
|
|
)
|
|
|
|
|
2024-07-19 16:52:06 +03:00
|
|
|
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!
|
|
|
|
}
|
|
|
|
)
|