Sign in Join
FPDoc Onlineexperiment

TResponse.SetStatus procedure

Member of TResponsepublicIn unit HTTPDefs

Sets the HTTP status code and text

Declaration

pascal
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.