aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2019-04-17 22:31:06 -0400
committerJoshua Boniface <joshua@boniface.me>2019-04-17 22:31:06 -0400
commit250e0c75dfaebca54e93be6c11c70cb0d19e589a (patch)
tree47ac36760ef10ad719487e9b872f9621c7ac58a1
parent65bff1181a3ae739dedbfd647d890630aa2cfba8 (diff)
Add MethodNotAllowedException with code 405
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpListenerHost.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
index e8d47cad5..831391cee 100644
--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -203,6 +203,7 @@ namespace Emby.Server.Implementations.HttpServer
case DirectoryNotFoundException _:
case FileNotFoundException _:
case ResourceNotFoundException _: return 404;
+ case MethodNotAllowedException _: return 405;
case RemoteServiceUnavailableException _: return 502;
default: return 500;
}