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

Function writeInternalServerError

_examples/database/mysql/api/helper.go:19–21  ·  view source on GitHub ↗
(ctx iris.Context)

Source from the content-addressed store, hash-verified

17}
18
19func writeInternalServerError(ctx iris.Context) {
20 ctx.StopWithJSON(iris.StatusInternalServerError, newError(iris.StatusInternalServerError, ctx.Request().Method, ctx.Path(), ""))
21}
22
23func writeEntityNotFound(ctx iris.Context) {
24 ctx.StopWithJSON(iris.StatusNotFound, newError(iris.StatusNotFound, ctx.Request().Method, ctx.Path(), "entity does not exist"))

Callers 14

GetByIDMethod · 0.85
ListMethod · 0.85
CreateMethod · 0.85
UpdateMethod · 0.85
PartialUpdateMethod · 0.85
DeleteMethod · 0.85
GetByIDMethod · 0.85
ListMethod · 0.85
CreateMethod · 0.85
UpdateMethod · 0.85
PartialUpdateMethod · 0.85
DeleteMethod · 0.85

Calls 4

StopWithJSONMethod · 0.80
RequestMethod · 0.80
newErrorFunction · 0.70
PathMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…