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

Function isModelSupportResultError

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

Source from the content-addressed store, hash-verified

3968}
3969
3970func isModelSupportResultError(err *Error) bool {
3971 if err == nil {
3972 return false
3973 }
3974 status := statusCodeFromResult(err)
3975 if status != http.StatusBadRequest && status != http.StatusUnprocessableEntity {
3976 return false
3977 }
3978 return isModelSupportErrorMessage(err.Message)
3979}
3980
3981func isCloudflareChallengeErrorMessage(message string) bool {
3982 lower := strings.ToLower(strings.TrimSpace(message))

Callers 1

MarkResultMethod · 0.85

Calls 2

statusCodeFromResultFunction · 0.85

Tested by

no test coverage detected