MCPcopy
hub / github.com/cloudflare/cloudflared / newStatusCode

Function newStatusCode

ingress/origin_service.go:261–263  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

259}
260
261func newStatusCode(status int) statusCode {
262 return statusCode{code: status}
263}
264
265// default status code (503) that is returned for requests to cloudflared that don't have any ingress rules setup
266func newDefaultStatusCode(log *zerolog.Logger) statusCode {

Callers 3

validateIngressFunction · 0.85
TestStaticHTTPStatusFunction · 0.85
TestParseIngressFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestStaticHTTPStatusFunction · 0.68
TestParseIngressFunction · 0.68