|
|
|
@ -19,6 +19,7 @@ using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using MediaBrowser.Common.Security;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.HttpServer
|
|
|
|
|
{
|
|
|
|
@ -92,7 +93,9 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|
|
|
|
{typeof (FileNotFoundException), 404},
|
|
|
|
|
{typeof (DirectoryNotFoundException), 404},
|
|
|
|
|
{typeof (SecurityException), 401},
|
|
|
|
|
{typeof (UnauthorizedAccessException), 500}
|
|
|
|
|
{typeof (PaymentRequiredException), 402},
|
|
|
|
|
{typeof (UnauthorizedAccessException), 500},
|
|
|
|
|
{typeof (ApplicationException), 500}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
HostConfig.Instance.DebugMode = true;
|
|
|
|
|