HTTPSecureSocket.ErrorCode

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aHTTPSecureSocket.ErrorCode

Supported for all project types and targets.

A special case of LastErrorCode.

Notes

Returns the same as LastErrorCode except for these two conditions:

  1. If Get/Post/GetHeaders/SendRequest times out, then ErrorCode = -1
  2. 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