returnErrorResponse - returns the response object from remote server