2024-12-11 21:36:30 +01:00
|
|
|
// <copyright file="ServiceErrorCodes.cs" company="alveus.dev">
|
|
|
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
|
|
|
// </copyright>
|
|
|
|
|
|
|
|
namespace Astral.Services.Constants;
|
|
|
|
|
|
|
|
/// <summary>
|
2024-12-14 17:31:17 +01:00
|
|
|
/// Collection of standard error codes.
|
2024-12-11 21:36:30 +01:00
|
|
|
/// </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";
|
|
|
|
}
|