MCPcopy
hub / github.com/labstack/echo / StatusCode

Method StatusCode

httperror.go:40–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38// HTTPStatusCoder is an interface that errors can implement to produce status code for HTTP response
39type HTTPStatusCoder interface {
40 StatusCode() int
41}
42
43// StatusCode returns status code from err if it implements HTTPStatusCoder interface.

Callers 11

TestHTTPError_StatusCodeFunction · 0.95
DefaultHTTPErrorHandlerFunction · 0.95
StatusCodeFunction · 0.95
ToMiddlewareMethod · 0.95
TestDecompress_ZipBombFunction · 0.65
TestBodyLimitReaderFunction · 0.65

Implementers 4

customErrorecho_test.go
HTTPErrorhttperror.go
httpErrorhttperror.go
apiErrorhttperror_external_test.go

Calls

no outgoing calls