use 403 code

This commit is contained in:
Brahim Hadriche 2024-04-01 10:03:29 -04:00
parent c5eb10b21f
commit b0c6bdf44c

View file

@ -31,7 +31,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|