MCPcopy Create free account
hub / github.com/kataras/iris / httpError

Struct httpError

_examples/kafka-api/main.go:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138type httpError struct {
139 Code int `json:"code"`
140 Reason string `json:"reason,omitempty"`
141}
142
143func (h httpError) Error() string {
144 return fmt.Sprintf("Status Code: %d\nReason: %s", h.Code, h.Reason)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected