Table of Contents

TTMSMCPHTTPServerResponse.ResponseCode Property

Status code to answer with. 0 until the handler sets one.

API unit family: TMS.MCP.HTTPServer Declaring type: TTMSMCPHTTPServerResponse Type: Integer

Syntax

property ResponseCode: Integer;

Remarks

Set it before the headers go out. Leaving it at 0 means the handler expressed no outcome, so set it explicitly on every path, including error paths.