fix(feeds.cr): http status code

This commit is contained in:
Richard Lora 2024-05-03 10:36:43 -04:00 committed by GitHub
parent e613e3c08c
commit 5fa293541b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ module Invidious::Routes::API::V1::Feeds
if !CONFIG.trending_enabled
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
haltf env, 400, error_message
haltf env, 403, error_message
end
region = env.params.query["region"]?
@ -36,7 +36,7 @@ module Invidious::Routes::API::V1::Feeds
if !CONFIG.popular_enabled
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
haltf env, 400, error_message
haltf env, 403, error_message
end
JSON.build do |json|