From 056971a743668848451ba38d1887ce5ddb0def80 Mon Sep 17 00:00:00 2001 From: Evan Read Date: Wed, 6 Feb 2019 11:04:11 +1000 Subject: Tabulate return codes --- doc/api/snippets.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/api/snippets.md') diff --git a/doc/api/snippets.md b/doc/api/snippets.md index 0dc6d9ddf89..f90447e124e 100644 --- a/doc/api/snippets.md +++ b/doc/api/snippets.md @@ -279,10 +279,12 @@ Example request: curl --request DELETE --header "PRIVATE-TOKEN: " "https://gitlab.example.com/api/v4/snippets/1" ``` -If: +The following are possible return codes: -- Delete is successful, a `204 No content` HTTP code is returned with no data. -- The snippet is non-existent, a `404 Not Found` is returned. +| Code | Description | +|:------|:--------------------------------------------| +| `204` | Delete was successful. No data is returned. | +| `404` | The snippet wasn't found. | ## List all public snippets -- cgit v1.2.1