MCPcopy Create free account
hub / github.com/corestoreio/pkg / ErrorWithStatusCode

Function ErrorWithStatusCode

net/mw/errors.go:32–38  ·  view source on GitHub ↗

ErrorWithStatusCode wraps an HTTP Status Code into an ErrorHandler. The status text message gets printed first followed by the verbose error string. This function may leak sensitive information.

(code int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected