mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-13 19:58:24 +00:00
use 403 code
This commit is contained in:
parent
c5eb10b21f
commit
b0c6bdf44c
@ -31,7 +31,7 @@ module Invidious::Routes::API::V1::Feeds
|
|||||||
|
|
||||||
if !CONFIG.popular_enabled
|
if !CONFIG.popular_enabled
|
||||||
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
||||||
haltf env, 400, error_message
|
haltf env, 403, error_message
|
||||||
end
|
end
|
||||||
|
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
|
Loading…
Reference in New Issue
Block a user