36 lines
938 B
C#
36 lines
938 B
C#
// <copyright file="CoreErrorCodes.cs" company="alveus.dev">
|
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
|
// </copyright>
|
|
|
|
namespace Astral.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";
|
|
|
|
/// <summary>
|
|
/// Entity not found.
|
|
/// </summary>
|
|
public const string NotFoundError = "not-found";
|
|
|
|
/// <summary>
|
|
/// An unexpected error.
|
|
/// </summary>
|
|
public const string UnexpectedError = "unexpected-error";
|
|
}
|