TWebCopy should save error messages returned by server

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:

  1. Presented in an error event handler .
    WebCopy1ServerErrorMsg(TObject *Sender, int ErrorCode, UnicodeString ServerErrorMsg){}

  2. Save to an error log file.