tent = 'PATCH: ' + JSON.stringify(data);
        })
        .catch(error => {
          console.error('PATCH Error:', error);
          resultDiv.textContent = 'PATCH Error: ' + error;
        });
    });

    document.getElementById('delete').addEventListener('click', () => {
      http.delete('https://api.camijs.com/posts/1').toJson()
        .then(data => {
          console.log('DELETE:', data);
          resultDiv.textContent = 'DELETE: ' + JSON.stringify(data);
        })
        .catch(error => {
   