TXDataBaseRequestHandler.SetStatusCode Method
Sets the HTTP status code of the response.
Remarks
Unlike setting the status code directly in the response, this method marks the code as explicitly chosen, so XData keeps it instead of replacing it with the status code it would send by default for the request.
Syntax
Unit: XData.Module.Base
procedure TXDataBaseRequestHandler.SetStatusCode(AStatusCode: Integer);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AStatusCode | Integer | The status code to send to the client. |