When making a download request with WebCopy there is often an error message returned from the server along with the standard http error code. This error message is usually a string containing a small .json file or text message. I would like any error message returned by the server to be dealt with one of two ways:
-
Presented in an error event handler .
WebCopy1ServerErrorMsg(TObject *Sender, int ErrorCode, UnicodeString ServerErrorMsg){} -
Save to an error log file.