mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Fix catching authentication exception
This commit is contained in:
@@ -125,6 +125,7 @@ namespace Jellyfin.Server.Middleware
|
||||
switch (ex)
|
||||
{
|
||||
case ArgumentException _: return StatusCodes.Status400BadRequest;
|
||||
case AuthenticationException _:
|
||||
case SecurityException _: return StatusCodes.Status401Unauthorized;
|
||||
case DirectoryNotFoundException _:
|
||||
case FileNotFoundException _:
|
||||
|
||||
Reference in New Issue
Block a user