galaeth-draft/Galaeth.Core/Constants/CoreErrorCodes.cs

23 lines
533 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.Core.Constants;
/// <summary>
/// Error codes to be provided in a response.
/// </summary>
public static class CoreErrorCodes
{
/// <summary>
/// Unauthorised access.
/// </summary>
public const string Unauthorized = "unauthorized";
/// <summary>
/// The request body is missing data.
/// </summary>
public const string NoDataProvided = "missing-data";
/// <summary>
/// Validation failed.
/// </summary>
public const string ValidationError = "validation-fail";
}