title: API always returns 200 with no data in the response
body: <p>I'm trying to make a request to api.postcodes.io/postcodes/:postcode/validate, to check if the postcode I have entered is a valid one. If I do this through the website I get a 200 response and a boolean result set to true when I enter a valid postcode and status: 200, result: false when I enter a random number. However, when trying to do this through my code I get no result. What could be the problem? I tried to parse the result using .json() but this just gave me an error.</p>
  <p>This is my request:</p>
  <pre><code>const requestURL = 'https://api.postcodes.io/postcodes/' + addedPostcode + '/validate';
  
  try {
          console.log(&quot;enters try&quot;);
          const response = yield fetch(requestURL, {
              method: 'GET',
          });
          if(response.status === 200){
              console.log(&quot;enters 200&quot;);
              yield put({type: 'SHOW_ALERT', payload: {alertType: 'success', alertMessage: 'POST CODE VALID'}});
              const updatedUser = yield response;
              console.log(updatedUser);
          } else{
              console.log(&quot;enters 400&quot;);
              const description = 'POST CODE INVALID';
              yield put({type: 'SHOW_MODAL', payload: {type:'error', description}});
              return;
          }
      } catch (e) {
          console.log(e);
      }
  </code></pre>
  <p>SOLUTION: Response needed to be parsed using .json(). Reason it was failing before is because my request url was missing the 'https://' part.</p>