summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-20 18:08:51 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-20 18:08:51 +0000
commitdf2eda3f14dccb703bd7054d4ddde7803cb1fe7e (patch)
tree0200bb0def01cde22da3bc4c9ed0a7b0f91d6b50 /lib/api/helpers.rb
parentb9bac6dbf78a5a7976fba14aaeef96bdeb0da612 (diff)
downloadgitlab-ce-df2eda3f14dccb703bd7054d4ddde7803cb1fe7e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-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 001fb92ec52..6c3b8cb8dd8 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -359,6 +359,10 @@ module API
render_api_error!('405 Method Not Allowed', 405)
end
+ def service_unavailable!
+ render_api_error!('503 Service Unavailable', 503)
+ end
+
def conflict!(message = nil)
render_api_error!(message || '409 Conflict', 409)
end