diff options
Diffstat (limited to 'pkg/context/api.go')
-rw-r--r-- | pkg/context/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/context/api.go b/pkg/context/api.go index 7df5b23a..439fb5df 100644 --- a/pkg/context/api.go +++ b/pkg/context/api.go @@ -44,6 +44,11 @@ func (c *APIContext) Error(status int, title string, obj interface{}) { }) } +// NoContent renders the 204 response. +func (c *APIContext) NoContent() { + c.Status(http.StatusNoContent) +} + // NotFound renders the 404 response. func (c *APIContext) NotFound() { c.Status(http.StatusNotFound) |