TResponse.SetStatus procedure
Sets the HTTP status code and text
Declaration
procedure SetStatus(aStatus: Cardinal; aSend: Boolean=False)Arguments
aStatus | HTTP status code to set |
aSend | Whether to send the status immediately |
Description
SetStatus sets the HTTP status code and optionally sends it immediately.
This method allows setting both the numeric status code and corresponding reason phrase.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
