Invidious is an alternative front-end to YouTube
Revert "Fix error code for disabled popular endpoint"
Brahim Hadrichec5eb10b21f74
diff --git a/src/invidious/routes/api/v1/feeds.cr b/src/invidious/routes/api/v1/feeds.crindex 0ee22ca6..41865f34 100644--- a/src/invidious/routes/api/v1/feeds.cr+++ b/src/invidious/routes/api/v1/feeds.cr@@ -30,7 +30,8 @@ module Invidious::Routes::API::V1::Feedsenv.response.content_type = "application/json"if !CONFIG.popular_enabled- return error_json(403, "Administrator has disabled this endpoint.")+ error_message = {"error" => "Administrator has disabled this endpoint."}.to_json+ haltf env, 400, error_messageendJSON.build do |json|