Pass job_id as part of options hash for Export command.
Check for Net::HTTPOK instead for Net::HTTPSuccess class in Response.