fix(search.cr): http status code

This commit is contained in:
Richard Lora 2024-05-03 10:38:57 -04:00
parent 5fa293541b
commit 3abf21625c
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Invidious::Routes::API::V1::Search
if !CONFIG.search_enabled
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
haltf env, 400, error_message
haltf env, 403, error_message
end
query = Invidious::Search::Query.new(env.params.query, :regular, region)