1
0
rngpotd/return-code.go

47 lines
1.1 KiB
Go
Raw Normal View History

2024-07-19 16:52:06 +03:00
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
)