Merge pull request #3124 from iv-org/add-404-status-code

This commit is contained in:
Samantaz Fox
2022-07-06 22:05:01 +02:00
16 changed files with 80 additions and 11 deletions

View File

@@ -150,6 +150,8 @@ module Invidious::Routes::Feeds
channel = get_about_info(ucid, locale)
rescue ex : ChannelRedirect
return env.redirect env.request.resource.gsub(ucid, ex.channel_id)
rescue ex : NotFoundException
return error_atom(404, ex)
rescue ex
return error_atom(500, ex)
end