MCPcopy Create free account
hub / github.com/kataras/iris / internalServerError

Function internalServerError

_examples/view/template_blocks_0/main.go:28–41  ·  view source on GitHub ↗
(ctx iris.Context)

Source from the content-addressed store, hash-verified

26}
27
28func internalServerError(ctx iris.Context) {
29 ctx.StatusCode(iris.StatusInternalServerError)
30
31 data := iris.Map{
32 "Code": iris.StatusInternalServerError,
33 "Message": "Internal Server Error",
34 }
35
36 ctx.ViewLayout("error")
37 if err := ctx.View("500", data); err != nil {
38 ctx.HTML("<h3>%s</h3>", err.Error())
39 return
40 }
41}

Callers

nothing calls this directly

Calls 5

ViewLayoutMethod · 0.80
StatusCodeMethod · 0.65
ViewMethod · 0.65
ErrorMethod · 0.65
HTMLMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…