diff options
Diffstat (limited to 'lib/api/helpers.rb')
-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 7d9a91cd360..2635fe1f1d5 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 not_acceptable! + render_api_error!('406 Not Acceptable', 406) + end + def conflict!(message = nil) render_api_error!(message || '409 Conflict', 409) end |