MCPcopy
hub / github.com/QuantumNous/new-api / ErrOptionWithStatusCode

Function ErrOptionWithStatusCode

types/error.go:393–397  ·  view source on GitHub ↗
(statusCode int)

Source from the content-addressed store, hash-verified

391}
392
393func ErrOptionWithStatusCode(statusCode int) NewAPIErrorOptions {
394 return func(e *NewAPIError) {
395 e.StatusCode = statusCode
396 }
397}
398
399func ErrOptionWithHideErrMsg(replaceStr string) NewAPIErrorOptions {
400 return func(e *NewAPIError) {

Callers 3

testChannelFunction · 0.92
RelayFunction · 0.92
ResponsesHelperFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected