using System.Net; using Galaeth.Core.Constants; using Galaeth.Core.Exceptions; namespace Galaeth.Services.Exceptions; /// /// Thrown when an attempt to perform an unauthorised action occurs. /// public class UnauthorizedException : ServiceException { /// /// Initializes a new instance of the class. /// public UnauthorizedException() : base(CoreErrorCodes.Unauthorized, $"You are not authorized to do that", HttpStatusCode.Unauthorized) { } }