Add MethodNotAllowedException with code 405

This commit is contained in:
Joshua Boniface 2019-04-17 22:31:06 -04:00
parent 65bff1181a
commit 250e0c75df
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}