MCPcopy
hub / github.com/go-kit/kit / StatusCode

Method StatusCode

transport/http/server.go:217–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215// StatusInternalServerError (500) is used.
216type StatusCoder interface {
217 StatusCode() int
218}
219
220// Headerer is checked by DefaultErrorEncoder. If an error value implements

Callers 3

EncodeJSONResponseFunction · 0.65
DefaultErrorEncoderFunction · 0.65
EncodeProtoResponseFunction · 0.65

Implementers 5

AuthErrorauth/basic/middleware.go
enhancedResponsetransport/http/server_test.go
noContentResponsetransport/http/server_test.go
enhancedErrortransport/http/server_test.go
Cattransport/http/proto/proto_pb_test.go

Calls

no outgoing calls

Tested by

no test coverage detected