astral-api/Astral.ApiServer/Models/Common/ErrorResultModel.cs
2024-12-11 20:36:30 +00:00

31 lines
733 B
C#

// <copyright file="ErrorResultModel.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
using System.Text.Json.Serialization;
namespace Astral.ApiServer.Models.Common;
/// <summary>
/// Error result model.
/// </summary>
public class ErrorResultModel
{
/// <summary>
/// Status: failure.
/// </summary>
[JsonPropertyName("status")]
public const string Status = "failure";
/// <summary>
/// Error code.
/// </summary>
[JsonPropertyName("error")]
public string Error { get; set; }
/// <summary>
/// Error message.
/// </summary>
[JsonPropertyName("message")]
public string Message { get; set; }
}