galaeth-draft/Galaeth.ApiServer/Constants/ApiErrorCodes.cs

33 lines
777 B
C#
Raw Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.ApiServer.Constants;
/// <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";
/// <summary>
/// Unsupported user agent.
/// </summary>
public const string UnsupportedUserAgent = "unsupported-user-agent";
}