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

Function errorEventStatusCode

sdk/cliproxy/auth/error_events.go:133–138  ·  view source on GitHub ↗
(err *Error)

Source from the content-addressed store, hash-verified

131}
132
133func errorEventStatusCode(err *Error) int {
134 if err != nil && err.HTTPStatus > 0 {
135 return err.HTTPStatus
136 }
137 return 500
138}
139
140func errorEventBody(err *Error) string {
141 if err == nil {

Callers 1

buildErrorEventPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected