Not sure why I keep getting 404 error with Ruby Rest Client <p>I'm using the following code: </p> <pre><code>RestClient.get "https://myurl.com/apps/v1/company/apps/appname/device/#{device_uuid}", :params =&gt; {:client_id =&gt; client_id, :client_secret =&gt; client_secret} do |response, request, result, &amp;block| if [404].include? response.code puts 'ERROR' + response.body else response.return!(request, result, &amp;block) end end </code></pre> <p>I am trying to use client_id and client_secret as query string parameters, and I know that when I manually do a get on this url in my browser that it is valid - however when I try to use this rest client get request, I only seem to be getting a 404 resource not found back. </p> <p>The end result I am trying to do is to get the JSON back from this get request as well - it may need to be a separate question but I am also having issues with getting the JSON contents from the response body.</p> <p>Thank you for any help</p>