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

Function internalServerError

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

Source from the content-addressed store, hash-verified

10}
11
12func internalServerError(err error) *appError {
13 return &appError{
14 Error: err,
15 Message: "Internal server error",
16 Code: http.StatusInternalServerError,
17 }
18}
19
20func notFound(err error) *appError {
21 return &appError{Error: err, Code: http.StatusNotFound}

Callers 5

JSONHandlerMethod · 0.85
PortHandlerMethod · 0.85
cacheResizeHandlerMethod · 0.85
cacheHandlerMethod · 0.85
DefaultHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected