The Free Software Media System - Server Backend & API
Add MethodNotAllowedException with code 405
Joshua Boniface250e0c75dfae
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex e8d47cad52..831391cee6 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -203,6 +203,7 @@ namespace Emby.Server.Implementations.HttpServercase DirectoryNotFoundException _:case FileNotFoundException _:case ResourceNotFoundException _: return 404;+ case MethodNotAllowedException _: return 405;case RemoteServiceUnavailableException _: return 502;default: return 500;}