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

Function NewBadRequestString

errors/http.go:33–35  ·  view source on GitHub ↗

NewBadRequestString returns a HttpError with the supplied message and error code 400.

(s string)

Source from the content-addressed store, hash-verified

31// NewBadRequestString returns a HttpError with the supplied message
32// and error code 400.
33func NewBadRequestString(s string) *HTTPError {
34 return NewBadRequest(errors.New(s))
35}
36
37// NewBadRequestMissingParameter returns a 400 HttpError as a required
38// parameter is missing in the HTTP request.

Callers 15

ProcessRequestOneOfFunction · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
computeSumFunction · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
scanHandlerFunction · 0.92
gencrlHandlerFunction · 0.92

Calls 2

NewBadRequestFunction · 0.85
NewMethod · 0.80

Tested by 1

TestHTTPFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…