Skip to content

ResponseStatusCode - cBaseHTTPTransfer

Returns the response HTTP status code

Type: Function
Return Data Type: Integer

Syntax

Function ResponseStatusCode Returns Integer

Call Example

Get ResponseStatusCode to IntegerVariable

Description

ResponseStatusCode can be used to gain more information about an HTTP transfer. This can be useful when trying to handle transfer failures.

LastErrorCode returns the last Windows error code. The combination of the 2 codes can be useful.

The status codes returned are the standard HTTP status codes. A few of these codes are:

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
407 Proxy Authentication Required
408 Request Timeout
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable

Consult an HTTP reference for a complete descriptive list of these codes.

Return Value

Returns the response http status code