MCPcopy Index your code
hub / github.com/DoNewsCode/core / StatusCode

Method StatusCode

srvhttp/encode.go:18–18  ·  view source on GitHub ↗

StatusCode provides the status code for the http response.

()

Source from the content-addressed store, hash-verified

16type StatusCoder interface {
17 // StatusCode provides the status code for the http response.
18 StatusCode() int
19}
20
21// ResponseEncoder encodes either a successful http response or errors to the JSON format,

Callers 3

encodeFunction · 0.65
ExampleFunction · 0.65
ExampleError_StatusCodeFunction · 0.65

Implementers 1

Errorunierr/error.go

Calls

no outgoing calls

Tested by 2

ExampleFunction · 0.52
ExampleError_StatusCodeFunction · 0.52