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

Function NewBadRequest

errors/http.go:27–29  ·  view source on GitHub ↗

NewBadRequest creates a HttpError with the given error and error code 400.

(err error)

Source from the content-addressed store, hash-verified

25
26// NewBadRequest creates a HttpError with the given error and error code 400.
27func NewBadRequest(err error) *HTTPError {
28 return &HTTPError{http.StatusBadRequest, err}
29}
30
31// NewBadRequestString returns a HttpError with the supplied message
32// and error code 400.

Callers 9

HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
initialCAHandlerFunction · 0.92
scanHandlerFunction · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
NewBadRequestStringFunction · 0.85
TestHTTPFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHTTPFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…