Sets the HTTP status code and text
Source position: httpdefs.pp line 615
public procedure TResponse.SetStatus( |
aStatus: Cardinal; |
aSend: Boolean = False |
); |
aStatus |
|
HTTP status code to set |
aSend |
|
Whether to send the status immediately |
SetStatus sets the HTTP status code and optionally sends it immediately. This method allows setting both the numeric status code and corresponding reason phrase.