MCPcopy Index your code
hub / github.com/mpolden/echoip / badRequest

Function badRequest

http/error.go:24–26  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

22}
23
24func badRequest(err error) *appError {
25 return &appError{Error: err, Code: http.StatusBadRequest}
26}
27
28func (e *appError) AsJSON() *appError {
29 e.ContentType = jsonMediaType

Callers 11

CLIHandlerMethod · 0.85
CLICountryHandlerMethod · 0.85
CLICountryISOHandlerMethod · 0.85
CLICityHandlerMethod · 0.85
CLICoordinatesHandlerMethod · 0.85
CLIASNHandlerMethod · 0.85
CLIASNOrgHandlerMethod · 0.85
JSONHandlerMethod · 0.85
PortHandlerMethod · 0.85
cacheResizeHandlerMethod · 0.85
DefaultHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected