MCPcopy Create free account
hub / github.com/davecheney/pub / StatusError

Struct StatusError

internal/httpx/handler.go:20–23  ·  view source on GitHub ↗

StatusError represents an error with an associated HTTP status code.

Source from the content-addressed store, hash-verified

18
19// StatusError represents an error with an associated HTTP status code.
20type StatusError struct {
21 Code int
22 Err error
23}
24
25// Allows StatusError to satisfy the error interface.
26func (se *StatusError) Error() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected