Skip to content

TResponse.SetStatus

Sets the HTTP status code and text

Declaration

Source position: httpdefs.pp line 628

public 
procedure TResponse.SetStatus(aStatus: Cardinal; aSend: Boolean=False);

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.