MCPcopy
hub / github.com/lxc/incus / Status

Method Status

shared/api/error.go:41–43  ·  view source on GitHub ↗

Status returns the HTTP status code.

()

Source from the content-addressed store, hash-verified

39
40// Status returns the HTTP status code.
41func (e StatusError) Status() int {
42 return e.status
43}
44
45// StatusErrorMatch checks if err was caused by StatusError. Can optionally also check whether the StatusError's
46// status code matches one of the supplied status codes in matchStatus.

Callers 1

StatusErrorMatchFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected