galaeth-draft/Galaeth.Services/Constants/ServiceErrorCodes.cs

38 lines
1 KiB
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.Services.Constants;
/// <summary>
/// Collection of standard error codes.
/// </summary>
public static class ServiceErrorCodes
{
/// <summary>
/// Username is already taken.
/// </summary>
public const string UsernameTaken = "username-taken";
/// <summary>
/// Email address already registered to a user.
/// </summary>
public const string EmailAlreadyRegistered = "email-already-registered";
/// <summary>
/// Invalid login credentials were provided.
/// </summary>
public const string InvalidCredentials = "invalid-credentials";
/// <summary>
/// This user is suspended from logging in.
/// </summary>
public const string SuspendedUser = "user-suspended";
/// <summary>
/// This user is banned from logging in.
/// </summary>
public const string BannedUser = "user-banned";
/// <summary>
/// This user's account is not yet activated.
/// </summary>
public const string PendingActivation = "pending-activation";
}