Commit 532f2225 authored by Kerri Miller's avatar Kerri Miller

Allow additional msg to be passed in 405 response

parent 509feeef
...@@ -387,8 +387,8 @@ module API ...@@ -387,8 +387,8 @@ module API
render_api_error!('401 Unauthorized', 401) render_api_error!('401 Unauthorized', 401)
end end
def not_allowed! def not_allowed!(message = nil)
render_api_error!('405 Method Not Allowed', 405) render_api_error!(message || '405 Method Not Allowed', :method_not_allowed)
end end
def not_acceptable! def not_acceptable!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment