42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
|
// <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>
|
||
|
/// 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";
|
||
|
}
|