Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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