diff options
author | Evan Read <eread@gitlab.com> | 2019-02-06 11:04:11 +1000 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2019-02-06 11:04:11 +1000 |
commit | 056971a743668848451ba38d1887ce5ddb0def80 (patch) | |
tree | 9722fa18f2503d7b8e644f8b01f1a2a7595a5dcb | |
parent | 5dae8b89b31485c28bffddb16b3fed47cad79e49 (diff) | |
download | gitlab-ce-056971a743668848451ba38d1887ce5ddb0def80.tar.gz |
Tabulate return codesdocs/uplift-snippets-api-doc
-rw-r--r-- | doc/api/snippets.md | 8 |
1 files changed, 5 insertions, 3 deletions
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: <your_access_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 |