From e81634075524a9523e5b1c3990100e1cd6a723ef Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 2 Apr 2026 21:02:32 +0200 Subject: [PATCH] Improve HTTP status info formatting in result views Replaced the simple status code string with ResultView.FormatHttpStatusInfo for the Info field, providing more descriptive HTTP status information. Added the ReC.Domain.Views namespace import to support this change. --- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index 4e91a5d..de5bbfa 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -7,6 +7,7 @@ using ReC.Application.Common.Exceptions; using ReC.Application.Common.Options; using ReC.Application.Results.Commands; using ReC.Domain.Constants; +using ReC.Domain.Views; using System.Net; using System.Net.Http.Headers; using System.Text; @@ -148,7 +149,7 @@ public class InvokeRecActionViewCommandHandler( ActionId = action.Id, Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }), Body = resBody, - Info = ((int)response.StatusCode).ToString(), + Info = ResultView.FormatHttpStatusInfo(response.StatusCode), Type = ResultType.Main }, cancel); }