namespace Common.Responses; /// /// Standard error body returned by all API endpoints on 4xx and 5xx responses. /// public sealed class ErrorResponse { /// Human-readable error message, safe to display directly to the end user for 4xx responses. public string Error { get; init; } = string.Empty; /// Machine-readable error code for programmatic handling (e.g. "captcha_verification_failed"). public string? Code { get; init; } /// Optional additional detail for debugging (not shown in UI). public string? Detail { get; init; } }