From 2a4378eb9a7b524ebbe4fab6c189837ce20dd130 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 15 Apr 2026 11:48:20 +0200 Subject: [PATCH] Set Info to numeric HTTP status code in result object Changed the Info property to store the raw (short) HTTP status code from response.StatusCode instead of using the formatted output from ResultView.FormatHttpStatusInfo. This provides a simpler, numeric representation of the HTTP status in the result. --- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index de5bbfa..e58cf35 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -149,7 +149,7 @@ public class InvokeRecActionViewCommandHandler( ActionId = action.Id, Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }), Body = resBody, - Info = ResultView.FormatHttpStatusInfo(response.StatusCode), + Info = (short)response.StatusCode, Type = ResultType.Main }, cancel); }