Replace unprocessable_entity -> unprocessable_content (#35658)
This commit is contained in:
1 parent
5318957ab3
commit
8131268256
5 files changed
+10
-10
No files matched your search
@@ -20,7 +20,7 @@ class Api::V2::SearchController < Api::BaseController
|
||||
@search = Search.new(search_results)
|
||||
render json: @search, serializer: REST::SearchSerializer
|
||||
rescue Mastodon::SyntaxError
|
||||
unprocessable_entity
|
||||
unprocessable_content
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
not_found
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user