Skip to content

Commit

Permalink
Set E.Status on Http Status code
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Feb 4, 2022
1 parent f440032 commit 5f21d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Horse.HandleException.pas
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ procedure HandleException(Req: THorseRequest; Res: THorseResponse; Next: {$IF DE
begin
LJSON.{$IF DEFINED(FPC)}Add{$ELSE}AddPair{$ENDIF}('type', GetEnumName(TypeInfo(TMessageType), Integer(E.&Type)));
end;
SendError(Res, LJSON, E.Code);
SendError(Res, LJSON, Integer(E.Status));
end;
on E: Exception do
begin
Expand Down

0 comments on commit 5f21d3c

Please sign in to comment.