summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-20 12:07:40 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-20 12:07:40 +0000
commitf864f8a7aafa45b0e4c04e4312f89da4b1227c0f (patch)
treee559b53ae6a7594f28409bab9d38325200b38495 /lib
parent898e2cc1dfa88b4ac39cb4b35011f61b37f57b51 (diff)
downloadgitlab-ce-f864f8a7aafa45b0e4c04e4312f89da4b1227c0f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/api/helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 37cb6d6a639..bb61b4948b9 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -363,6 +363,10 @@ module API
render_api_error!('204 No Content', 204)
end
+ def created!
+ render_api_error!('201 Created', 201)
+ end
+
def accepted!
render_api_error!('202 Accepted', 202)
end