MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / MidjourneyErrorWithStatusCodeWrapper

Function MidjourneyErrorWithStatusCodeWrapper

service/error.go:23–28  ·  view source on GitHub ↗
(code int, desc string, statusCode int)

Source from the content-addressed store, hash-verified

21}
22
23func MidjourneyErrorWithStatusCodeWrapper(code int, desc string, statusCode int) *dto.MidjourneyResponseWithStatusCode {
24 return &dto.MidjourneyResponseWithStatusCode{
25 StatusCode: statusCode,
26 Response: *MidjourneyErrorWrapper(code, desc),
27 }
28}
29
30//// OpenAIErrorWrapper wraps an error into an OpenAIErrorWithStatusCode
31//func OpenAIErrorWrapper(err error, code string, statusCode int) *dto.OpenAIErrorWithStatusCode {

Callers 1

DoMidjourneyHttpRequestFunction · 0.85

Calls 1

MidjourneyErrorWrapperFunction · 0.85

Tested by

no test coverage detected