summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-08-25 14:31:09 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2017-08-28 17:10:34 +0200
commit8bd9fb4cc4f8689a23c68e1b7f893ee59907069f (patch)
treea51c672764d1fe4463eb1e0c6332439098dff637
parent915dd57fe26fb228f30ae08edc4905b24d4c4339 (diff)
downloadgitlab-ce-8bd9fb4cc4f8689a23c68e1b7f893ee59907069f.tar.gz
Add changelog and doc
-rw-r--r--changelogs/unreleased/api-delete-respect-headers.yml5
-rw-r--r--doc/api/README.md1
2 files changed, 6 insertions, 0 deletions
diff --git a/changelogs/unreleased/api-delete-respect-headers.yml b/changelogs/unreleased/api-delete-respect-headers.yml
new file mode 100644
index 00000000000..cfc8fbfdf91
--- /dev/null
+++ b/changelogs/unreleased/api-delete-respect-headers.yml
@@ -0,0 +1,5 @@
+---
+title: 'API: Respect the "If-Unmodified-Since" header when delting a resource'
+merge_request: 9621
+author: Robert Schilling
+type: added
diff --git a/doc/api/README.md b/doc/api/README.md
index 266b5f018d9..c2a08dcff07 100644
--- a/doc/api/README.md
+++ b/doc/api/README.md
@@ -263,6 +263,7 @@ The following table shows the possible return codes for API requests.
| `404 Not Found` | A resource could not be accessed, e.g., an ID for a resource could not be found. |
| `405 Method Not Allowed` | The request is not supported. |
| `409 Conflict` | A conflicting resource already exists, e.g., creating a project with a name that already exists. |
+| `412` | Indicates the request was denied. May happen if the `If-Unmodified-Since` header is provided when trying to delete a resource, which was modified in between. |
| `422 Unprocessable` | The entity could not be processed. |
| `500 Server Error` | While handling the request something went wrong server-side. |