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

Interface HTTPStatusCoder

httperror.go:39–41  ·  view source on GitHub ↗

HTTPStatusCoder is an interface that errors can implement to produce status code for HTTP response

Source from the content-addressed store, hash-verified

37
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.
44// If err does not implement the interface, it returns 0.

Callers 8

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

Implementers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…