Edit

Share via


TestHttpResponseMessage.HttpStatusCode([Integer]) Method

Version: Available or changed with runtime version 15.0.

Gets or sets the status code of the HTTP response.

Syntax

StatusCode :=   TestHttpResponseMessage.HttpStatusCode([SetStatusCode: Integer])

Note

This method can be invoked using property access syntax.

Parameters

TestHttpResponseMessage
 Type: TestHttpResponseMessage
An instance of the TestHttpResponseMessage data type.

[Optional] SetStatusCode
 Type: Integer
The status code of the HTTP response.

Return Value

StatusCode
 Type: Integer
The status code of the HTTP response.

TestHttpResponseMessage data type
Getting started with AL
Developing extensions