Replace unprocessable_entity -> unprocessable_content (#35658)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-08-05 07:42:08 +00:00
1 parent 5318957ab3
commit 8131268256
5 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -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