mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 10:43:19 +00:00
Replace unprocessable_entity -> unprocessable_content (#35658)
This commit is contained in:
parent
5318957ab3
commit
8131268256
5 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue