mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-19 07:21:45 +02:00
SecurityException should return 403
This commit is contained in:
parent
2a575dd67e
commit
df75c1cd9c
1 changed files with 2 additions and 2 deletions
|
|
@ -125,8 +125,8 @@ namespace Jellyfin.Server.Middleware
|
|||
switch (ex)
|
||||
{
|
||||
case ArgumentException _: return StatusCodes.Status400BadRequest;
|
||||
case AuthenticationException _:
|
||||
case SecurityException _: return StatusCodes.Status401Unauthorized;
|
||||
case AuthenticationException _: return StatusCodes.Status401Unauthorized;
|
||||
case SecurityException _: return StatusCodes.Status403Forbidden;
|
||||
case DirectoryNotFoundException _:
|
||||
case FileNotFoundException _:
|
||||
case ResourceNotFoundException _: return StatusCodes.Status404NotFound;
|
||||
|
|
|
|||
Loading…
Reference in a new issue