GetResponseStatusText

Description

Gets the response status description.

Applies to

HTTPClient and RestClient objects

Syntax

objectname.GetResponseStatusText ( )

Argument

Description

objectname

The name of the HTTPClient or RestClient object for which you want to get the response status description


Return value

String.

Returns the response status description.

Examples

This example gets the response status description:

Integer li_rc, li_StatusCode
String ls_StatusText
Blob lblb_blob
HttpClient lnv_HttpClient
lnv_HttpClient = Create HttpClient

// Send request using GET method
li_rc = lnv_HttpClient.SendRequest("GET", " http://demo.appeon.com/PB/webapi_client/employee/102")

// Obtain the response message
if li_rc = 1 then
 // Obtain the response status
 li_StatusCode = lnv_HttpClient.GetResponseStatusCode()
 ls_StatusText = lnv_HttpClient.GetResponseStatusText()
 // Obtain the response data
 lnv_HttpClient.GetResponseBody(lblb_blob)
 …
end if

See also

GetResponseBody

GetResponseHeader

GetResponseHeaders

GetResponseStatusCode