GetHttpResponseStatusCode

Description

Gets the response status code. This function is only effective in the installable cloud application deployed with PowerServer.

Applies to

Application object

Syntax

applicationname.GetHttpResponseStatusCode ( )

Argument

Description

applicationname

The name of the application object for which you want to get the response status code


Return value

Long.

Returns the response status code or returns -1 if the current application is not an installable cloud app deployed with PowerServer.

Examples

This example gets the response status:

Long ls_StatusCode
ls_StatusCode = Getapplication().GetHttpResponseStatusCode()

See also

BeginSession

GetHttpResponseHeaders

GetHttpResponseStatusText

SetHttpRequestHeader