The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
!HTTP ERRORCODE
The built-in variable retrieves the last HTTP error code that is status code >=400 (client errors). Since the macro stops when navigation error occurs, the variable can only be retrieved if !ERRORIGNORE has been set to YES before the navigation started.
The variable is supported in iMacros as of version 11.5.
Value
Last navigation error >= 400 (HTTP errors).
Set By
[X] Internal
[ ] SET
Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.
Tip: Use the SET !ERRORIGNORE YES parameter to be able to retrieve the !HTTP_ERRORCODE variable:
Examples
SET !ERRORIGNORE YES URL GOTO=http://demo.imacros.net/ForceDirectedGraph.aspx prompt {{!HTTP_ERRORCODE}}
See Also
List of HTTP status codes, Error Handling, !ERRORIGNORE, URL