Skip to main content
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

TMS.MCP.HTTPServer.hppPascalC++
property ResponseCode: Integer;
__property int ResponseCode = {read=FResponseCode, write=SetResponseCode, nodefault};

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.