// // 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 UserBannedException : ServiceException { /// /// Initializes a new instance of the class. /// public UserBannedException() : base(ServiceErrorCodes.BannedUser, "You are banned from logging in", HttpStatusCode.Unauthorized) { } }