MCPcopy Create free account
hub / github.com/zalando/skipper / Error

Method Error

proxy/proxy.go:514–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

512}
513
514func (e proxyError) Error() string {
515 if e.err != nil {
516 return fmt.Sprintf("dialing failed %v: %v", e.DialError(), e.err.Error())
517 }
518
519 if e.handled {
520 return "request handled in a non-standard way"
521 }
522
523 code := e.code
524 if code == 0 {
525 code = http.StatusInternalServerError
526 }
527
528 return fmt.Sprintf("proxy error: %d", code)
529}
530
531// DialError returns true if the error was caused while dialing TCP or
532// TLS connections, before HTTP data was sent. It is safe to retry

Callers

nothing calls this directly

Calls 2

DialErrorMethod · 0.95
ErrorMethod · 0.65

Tested by

no test coverage detected