mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-31 08:26:27 +00:00
Add 404 status code on all possible endpoints
This commit is contained in:
@@ -237,6 +237,8 @@ module Invidious::Routes::API::V1::Authenticated
|
||||
|
||||
begin
|
||||
video = get_video(video_id)
|
||||
rescue ex : NotFoundException
|
||||
return error_json(404, ex)
|
||||
rescue ex
|
||||
return error_json(500, ex)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user