title: Nest : getting HTTP/1.1 401 Unauthorized while fetching devices using curl
body: <p>I'm getting HTTP/1.1 401 Unauthorized if I want to fetch Nest devices using </p>
  
  <pre><code>curl -v -L https://developer-api.nest.com/devices/?auth=&lt;AUTHCODE&gt; 
  </code></pre>
  
  <p>I don't have any device in my Nest account. I think I should get HTTP/1.1 404 Not Found. </p>
  
  <p>I tried to fetch thermostats with this command </p>
  
  <pre><code>curl -v -L https://developer-api.nest.com/devices/thermostats?auth=&lt;AUTHCODE&gt; 
  </code></pre>
  
  <p>then it replies back with HTTP/1.1 200 OK with same AUTHCODE which I think is correct. Again mentioning that I don't have any device in my account.</p>
  
  <p>So there is difference in the response that I'm getting. My question is that why am I getting 401 Unauthorized instead of 404 not found or 200 ok for the first curl command?</p>