25 lines
613 B
C#
25 lines
613 B
C#
// <copyright file="ErrorResponseModel.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 ErrorResponseModel : ResponseModel
|
|
{
|
|
/// <summary>
|
|
/// Error code.
|
|
/// </summary>
|
|
[JsonPropertyName("error")]
|
|
public string Error { get; set; }
|
|
|
|
/// <summary>
|
|
/// Error message.
|
|
/// </summary>
|
|
[JsonPropertyName("message")]
|
|
public string Message { get; set; }
|
|
}
|