MCPcopy Index your code
hub / github.com/perkeep/perkeep / InvalidParameterError

TypeAlias InvalidParameterError

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

An InvalidParameterError represents an invalid HTTP parameter. The underlying string is the invalid parameter name, not value.

Source from the content-addressed store, hash-verified

206// An InvalidParameterError represents an invalid HTTP parameter.
207// The underlying string is the invalid parameter name, not value.
208type InvalidParameterError string
209
210func (p InvalidParameterError) Error() string { return fmt.Sprintf("Invalid parameter %q", string(p)) }
211func (InvalidParameterError) HTTPCode() int { return http.StatusBadRequest }

Callers 4

fromHTTPMethod · 0.92
fromHTTPGetMethod · 0.92
MustGetBlobRefFunction · 0.85
OptionalIntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected