Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/src/commit/5f8c6da9d95d925c8ecd5826502799629d31deb1/NzbDrone.Core/Exceptions/StatusCodeToExceptions.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Lidarr/NzbDrone.Core/Exceptions/StatusCodeToExceptions.cs

32 lines
933 B

using System;
using System.Net;
namespace NzbDrone.Core.Exceptions
{
public static class StatusCodeToExceptions
{
public static void VerifyStatusCode(this HttpStatusCode statusCode, string message = null)
{
if (String.IsNullOrEmpty(message))
{
message = statusCode.ToString();
}
switch (statusCode)
{
case HttpStatusCode.BadRequest:
throw new BadRequestException(statusCode, message);
case HttpStatusCode.Unauthorized:
throw new UnauthorizedAccessException(message);
case HttpStatusCode.PaymentRequired:
throw new DownstreamException(statusCode, message);
case HttpStatusCode.InternalServerError:
throw new DownstreamException(statusCode, message);
}
}
}
}