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

Method NotFound

internal/context/api.go:35–37  ·  view source on GitHub ↗

NotFound renders the 404 response.

()

Source from the content-addressed store, hash-verified

33
34// NotFound renders the 404 response.
35func (c *APIContext) NotFound() {
36 c.Status(http.StatusNotFound)
37}
38
39// ErrorStatus renders error with given status code.
40func (c *APIContext) ErrorStatus(status int, err error) {

Callers 1

NotFoundOrErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected