Files
PlaylistShared/PlaylistShared.Shared/DTO/ErrorResponse.cs
2026-04-13 14:16:44 +03:00

19 lines
653 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Text.Json.Serialization;
namespace PlaylistShared.Shared.DTO;
/// <summary>Стандартный ответ сервера при ошибке.</summary>
public class ErrorResponse
{
/// <summary>HTTP статус-код.</summary>
[JsonPropertyName("statusCode")]
public int StatusCode { get; set; }
/// <summary>Сообщение об ошибке.</summary>
[JsonPropertyName("message")]
public string Message { get; set; } = null!;
/// <summary>Дополнительные детали (опционально).</summary>
[JsonPropertyName("details")]
public string? Details { get; set; }
}