MCPcopy Create free account
hub / github.com/cloudflare/cfssl / NewBadRequestMissingParameter

Function NewBadRequestMissingParameter

errors/http.go:39–41  ·  view source on GitHub ↗

NewBadRequestMissingParameter returns a 400 HttpError as a required parameter is missing in the HTTP request.

(s string)

Source from the content-addressed store, hash-verified

37// NewBadRequestMissingParameter returns a 400 HttpError as a required
38// parameter is missing in the HTTP request.
39func NewBadRequestMissingParameter(s string) *HTTPError {
40 return NewBadRequestString(`Missing parameter "` + s + `"`)
41}
42
43// NewBadRequestUnwantedParameter returns a 400 HttpError as a unnecessary
44// parameter is present in the HTTP request.

Callers 2

testValidatorFunction · 0.92
TestHTTPFunction · 0.85

Calls 1

NewBadRequestStringFunction · 0.85

Tested by 2

testValidatorFunction · 0.74
TestHTTPFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…