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.
This commit is contained in:
2026-04-15 11:48:20 +02:00
parent cb5bbfb722
commit 2a4378eb9a

View File

@@ -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);
}