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

Method Error

cfapi/base_client.go:217–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217func (e apiError) Error() string {
218 return fmt.Sprintf("code: %v, reason: %s", e.Code, e.Message)
219}
220
221func (r *RESTClient) statusCodeToError(op string, resp *http.Response) error {
222 if resp.Header.Get("Content-Type") == "application/json" {

Callers 15

FindOriginCertFunction · 0.45
runClientServerHandshakeFunction · 0.45
fallbackLoggerFunction · 0.45
newZerologFunction · 0.45
createFromContextFunction · 0.45
logRequestErrorFunction · 0.45
testProxySSEFunction · 0.45
TestProxyErrorFunction · 0.45
TestValidateUrlFunction · 0.45

Calls

no outgoing calls

Tested by 15

runClientServerHandshakeFunction · 0.36
testProxySSEFunction · 0.36
TestProxyErrorFunction · 0.36
TestValidateUrlFunction · 0.36
TestNewAccessValidatorOkFunction · 0.36
TestBastionDestinationFunction · 0.36
TestUpdateConfigurationFunction · 0.36
TestClosePreviousProxiesFunction · 0.36