HI I'm trying to implement this $contact = $hubSpot->crm()->contacts()->basicApi()->getById('[email protected]', null, null, null, false, 'email');
which works ok if the email exists but if an email doesn't exists then it gives 404 error and doesn't let me catch it for error handling
Fatal error: Uncaught HubSpot\Client\Crm\Contacts\ApiException: [404] Client error: GET https://api.hubapi.com/crm/v3/objects/contacts/nonexistent%40email.com?archived=false&idProperty=email resulted in a 404 Not Found response