mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-29 00:56:37 +01:00
New: Use ASP.NET Core instead of Nancy
(cherry picked from commit 58ddbcd77e17ef95ecfad4b746084ee9326116f3)
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using Nancy;
|
||||
using Nancy.Responses;
|
||||
using Prowlarr.Http.ErrorManagement;
|
||||
using Prowlarr.Http.Extensions;
|
||||
using System.Net;
|
||||
|
||||
namespace Prowlarr.Http.Exceptions
|
||||
{
|
||||
@@ -19,11 +16,6 @@ namespace Prowlarr.Http.Exceptions
|
||||
Content = content;
|
||||
}
|
||||
|
||||
public JsonResponse<ErrorModel> ToErrorResponse(NancyContext context)
|
||||
{
|
||||
return new ErrorModel(this).AsResponse(context, StatusCode);
|
||||
}
|
||||
|
||||
private static string GetMessage(HttpStatusCode statusCode, object content)
|
||||
{
|
||||
var result = statusCode.ToString();
|
||||
|
||||
Reference in New Issue
Block a user