MCPcopy
hub / github.com/perkeep/perkeep / ServerError

TypeAlias ServerError

internal/httputil/httputil.go:214–214  ·  view source on GitHub ↗

A ServerError is a generic 500 error.

Source from the content-addressed store, hash-verified

212
213// A ServerError is a generic 500 error.
214type ServerError string
215
216func (e ServerError) Error() string { return string(e) }
217func (ServerError) HTTPCode() int { return http.StatusInternalServerError }

Callers 2

discoveryHelperFunction · 0.92
serveUploadHelperMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected