astral-api/Astral.ApiServer/Models/Common/ErrorResponseModel.cs

26 lines
613 B
C#
Raw Permalink Normal View History

2024-12-15 17:06:14 +01:00
// <copyright file="ErrorResponseModel.cs" company="alveus.dev">
2024-12-11 21:36:30 +01:00
// 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>
2024-12-15 17:06:14 +01:00
public class ErrorResponseModel : ResponseModel
2024-12-11 21:36:30 +01:00
{
/// <summary>
/// Error code.
/// </summary>
[JsonPropertyName("error")]
public string Error { get; set; }
/// <summary>
/// Error message.
/// </summary>
[JsonPropertyName("message")]
public string Message { get; set; }
}