NotFound renders the 404 page.
()
| 158 | |
| 159 | // NotFound renders the 404 page. |
| 160 | func (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. |
| 166 | func (c *Context) Error(err error, msg string) { |
no test coverage detected