//
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
//
using System.Net;
using Astral.Core.Exceptions;
using Astral.Services.Constants;
namespace Astral.Services.Exceptions;
///
/// Thrown when the logging in user is suspended.
///
public class UserSuspendedException : ServiceException
{
///
/// Initializes a new instance of the class.
///
public UserSuspendedException()
: base(ServiceErrorCodes.SuspendedUser, "You are suspended from logging in", HttpStatusCode.Unauthorized)
{
}
}