MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ErrorAuthHeaderMissing

Function ErrorAuthHeaderMissing

pkg/operator/endpoints/errors.go:56–65  ·  view source on GitHub ↗
(header, host, url string)

Source from the content-addressed store, hash-verified

54}
55
56func ErrorAuthHeaderMissing(header, host, url string) error {
57 return errors.WithStack(&errors.Error{
58 Kind: ErrHeaderMissing,
59 Message: fmt.Sprintf("missing %s header", header),
60 Metadata: map[string]string{
61 "host": host,
62 "url": url,
63 },
64 })
65}
66
67func ErrorHeaderMalformed(header string) error {
68 return errors.WithStack(&errors.Error{

Callers 1

AWSAuthMiddlewareFunction · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected