       console.error('DELETE Error:', error);
          resultDiv.textContent = 'DELETE Error: ' + error;
        });
    });

    document.getElementById('getStream').addEventListener('click', () => {
      const stream = http.get('https://api.camijs.com/posts/1');

      stream
        .catchError(error => {
          console.error('GET Stream Error:', error);
          resultDiv.textContent = 'GET Stream Error: ' + error;

          // return this in case you want to continue the stream
          return 