//
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
//
using System.Net;
using Astral.Core.Constants;
using Astral.Core.Exceptions;
namespace Astral.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)
{
}
}