astral-api/Astral.ApiServer/Core/ApiErrorCodes.cs
2024-12-11 20:36:30 +00:00

31 lines
787 B
C#

// <copyright file="ApiErrorCodes.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
namespace Astral.ApiServer.Core;
/// <summary>
/// Api specific error codes.
/// </summary>
public static class ApiErrorCodes
{
/// <summary>
/// Validation failed.
/// </summary>
public const string UnknownError = "unknown-error";
/// <summary>
/// Illegal method call.
/// </summary>
public const string UnknownMethod = "unknown-method";
/// <summary>
/// Illegal method call.
/// </summary>
public const string IllegalMethod = "illegal-method";
/// <summary>
/// Validation failed.
/// </summary>
public const string UnsupportedBody = "unsupported-body";
}