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