mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-07 22:47:33 +00:00
Add 404 status code on all possible endpoints
This commit is contained in:
@@ -317,7 +317,7 @@ def get_playlist(plid : String)
|
||||
if playlist = Invidious::Database::Playlists.select(id: plid)
|
||||
return playlist
|
||||
else
|
||||
raise InfoException.new("Playlist does not exist.")
|
||||
raise NotFoundException.new("Playlist does not exist.")
|
||||
end
|
||||
else
|
||||
return fetch_playlist(plid)
|
||||
|
||||
Reference in New Issue
Block a user