MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / StatusCode

Method StatusCode

errctx/context.go:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (ec *ErrorContext) StatusCode() int {
38 if ec.statusCode <= 0 {
39 return 500
40 }
41
42 return ec.statusCode
43}
44
45func (ec *ErrorContext) PublicMessage() string {
46 if len(ec.publicMsg) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected