MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / statusCodeFromResult

Function statusCodeFromResult

sdk/cliproxy/auth/conductor.go:3927–3932  ·  view source on GitHub ↗
(err *Error)

Source from the content-addressed store, hash-verified

3925}
3926
3927func statusCodeFromResult(err *Error) int {
3928 if err == nil {
3929 return 0
3930 }
3931 return err.StatusCode()
3932}
3933
3934func isModelSupportErrorMessage(message string) bool {
3935 lower := strings.ToLower(strings.TrimSpace(message))

Callers 4

MarkResultMethod · 0.85
applyAuthFailureStateFunction · 0.85

Calls 1

StatusCodeMethod · 0.65

Tested by

no test coverage detected