diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/helpers.rb | 4 |
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 |