Return 400 instead

This commit is contained in:
Fijxu 2026-09-14 17:39:54 -03:00
parent a138436e08
commit 4f8e8f2f0c
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -312,7 +312,7 @@ module Invidious::Routes::API::V1::Authenticated
video_id = env.params.json["videoId"].try &.as(String)
# Sanity checks
unless video_id && validate_video_id(video_id)
return error_json(403, InvalidVideoID.new(video_id))
return error_json(400, InvalidVideoID.new(video_id))
end
begin