HTTP.GetHTTPErrorInfo

table HTTP.GetHTTPErrorInfo ( 

 )

Description

Retrieves HTTP specific information about the last HTTP action that was performed.

For example, if you perform an HTTP.Download and an error occurs, you can use this action to retrieve HTTP information about that error.

Parameters

None.

Returns

(table) A table containing the HTTP error information indexed by the following keys:

KEY

TYPE

DESCRIPTION

Number

number

The WinInet error code.

Message

string

The WinInet Error string associated with the error code.

Status

number

The HTTP status code associated with the last error. Status codes are categorized into the following groups:

200-299 Success

300-399 Information

400-499 Request error

500-599 Server error

 

Some common HTTP Status Codes:

200 URL located, transmission follows

400 Unintelligible request

404 Requested URL not found

405 Server does not support requested method

500 Unknown server error

503 Server capacity reached

Note: The Number and Message fields in the table generally report on whether the HTTP transaction itself was successful, for example the proper parameters were passed, an internet connection existed, and the information was actually sent to the server. The Status field contains information on the overall status of the operation at the server end, such as whether the server understood the request, and whether it was actually able to serve up the requested file.

You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions