32 lines
787 B
C#
32 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";
|
||
|
}
|