Skip to content

Commit 5f21d3c

Browse files
Set E.Status on Http Status code
1 parent f440032 commit 5f21d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Horse.HandleException.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ procedure HandleException(Req: THorseRequest; Res: THorseResponse; Next: {$IF DE
6060
begin
6161
LJSON.{$IF DEFINED(FPC)}Add{$ELSE}AddPair{$ENDIF}('type', GetEnumName(TypeInfo(TMessageType), Integer(E.&Type)));
6262
end;
63-
SendError(Res, LJSON, E.Code);
63+
SendError(Res, LJSON, Integer(E.Status));
6464
end;
6565
on E: Exception do
6666
begin

0 commit comments

Comments
 (0)