Replace unprocessable_entity -> unprocessable_content (#35658)

This commit is contained in:
Matt Jankowski 2025-08-05 03:42:08 -04:00 committed by GitHub
parent 5318957ab3
commit 8131268256
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 10 deletions

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