HTTPSocket.ErrorCode
From Xojo Documentation
Read-Only Property (As Integer )
A special case of LastErrorCode.
Notes
Returns the same as LastErrorCode except for these two conditions:
- If Get/Post/GetHeaders/SendRequest times out, then ErrorCode = -1
- When calling Get (the overloaded method that accepts a FolderItem as a parameter), if the file is a directory or could not be created then ErrorCode = 1