MCPcopy Create free account
hub / github.com/gogs/gogs / NotFound

Method NotFound

internal/context/context.go:160–163  ·  view source on GitHub ↗

NotFound renders the 404 page.

()

Source from the content-addressed store, hash-verified

158
159// NotFound renders the 404 page.
160func (c *Context) NotFound() {
161 c.Title("status.page_not_found")
162 c.HTML(http.StatusNotFound, fmt.Sprintf("status/%d", http.StatusNotFound))
163}
164
165// Error renders the 500 page.
166func (c *Context) Error(err error, msg string) {

Callers 1

NotFoundOrErrorMethod · 0.95

Calls 2

TitleMethod · 0.95
HTMLMethod · 0.95

Tested by

no test coverage detected