Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TResponse.SetStatus

Sets the HTTP status code and text

Declaration

Source position: httpdefs.pp line 615

public procedure TResponse.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.


Documentation generated on: Jan 16 2026