AIC Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC Commands

AIC_---Artificial-Intelligenc2

Get HTTP status

 

Syntax

AIC_---Artificial-Intelligenc2

 

Parameters

Name

Type

Required

Description

None

Void

No

No parameters required

 

Return Value

Type

Description

Long

Returns the HTTP status code from last API call

 

Remarks

·Common codes: 200 (OK), 400 (Bad Request), 401 (Unauthorized)

·429 indicates rate limiting

·500+ indicates server errors

 

Example

' Check HTTP status after API callDim status As Longstatus = AIC_---Artificial-Intelligenc2()If status = 200 ThenPrint "Request successful"ElsePrint "Error: " & statusEnd If

Retrieves the HTTP status code from the most recent API request.

 

See Also

AIC_GetContent, AIC_---Artificial-Intelligenc2

 

Previous  Top  Next