diff options
| author | Greenback <jimcartlidge@yahoo.co.uk> | 2020-10-09 14:12:41 +0100 |
|---|---|---|
| committer | Greenback <jimcartlidge@yahoo.co.uk> | 2020-10-09 14:12:41 +0100 |
| commit | ebe650afa9e622d3f9e53e50b42ea676fdc25e6e (patch) | |
| tree | 51da5ba142a8243b0d36313ec0e54318132ff3a2 /Jellyfin.Server/Middleware/ExceptionMiddleware.cs | |
| parent | 8a4f81c9a7a03c6a45a8a9331f71ba06ae0ce521 (diff) | |
| parent | 10d48b062315581adc4706530bc388d53ff232a4 (diff) | |
Merge remote-tracking branch 'upstream/master' into NetworkPR2
Diffstat (limited to 'Jellyfin.Server/Middleware/ExceptionMiddleware.cs')
| -rw-r--r-- | Jellyfin.Server/Middleware/ExceptionMiddleware.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Middleware/ExceptionMiddleware.cs b/Jellyfin.Server/Middleware/ExceptionMiddleware.cs index fb1ee3b2b..f6c76e4d9 100644 --- a/Jellyfin.Server/Middleware/ExceptionMiddleware.cs +++ b/Jellyfin.Server/Middleware/ExceptionMiddleware.cs @@ -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; |
