Forms API - Response 204?

forms

#1

Using the documentation on this page ( https://developers.hubspot.com/docs/methods/forms/submit_form ), I am getting a response 204.

My Code
$str_post = $urlfields . “&hs_context=” . urlencode($hs_context_json); //Leave this one be

//replace the values in this URL with your portal ID and your form GUID
$endpoint = 'https://forms.hubspot.com/uploads/form/v2/{removed}/{removed}';

$ch = @curl_init();
@curl_setopt($ch, CURLOPT_POST, true);
@curl_setopt($ch, CURLOPT_POSTFIELDS, $str_post);
@curl_setopt($ch, CURLOPT_URL, $endpoint);
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

@curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/x-www-form-urlencoded'
));
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response    = @curl_exec($ch); //Log the response from HubSpot as needed.
$status_code = @curl_getinfo($ch, CURLINFO_HTTP_CODE); //Log the response status code
if ( $status_code != 200 ){
   $APP_CURL_STATUS =  "Return code is {$status_code} \n " . curl_error($ch);
} else {
   $APP_CURL_STATUS = "<pre>".htmlspecialchars($response)."</pre>";
}
@curl_close($ch);

$WReg = "\n------------SUBMITTED DATA: " .$str_post . "\nSTATUS CODE: " . $APP_CURL_STATUS . "\nHUBSPOT RESPONSE: " . $response . "\nPAGE URL:" . $PageRefURL;
logthis($WReg);

//----------- END Webinar Post to Hubspot ------------------

As you see from above $WReg is the values retrieve from the Submission. I am writing that data to a text file.

This is that data.
------------SUBMITTED DATA: tpid=1154753&firstname=DELETE&lastname=DELETELN&ei=1154753&company=DELETE&jobtitle=DELETETITLE&email=drahofricr%40ibsats.com&phone=5555555555&leadsource=Marketing&lead_source_level_2=Webinar&webinar_primary_discipline=Field+Services&webinar_type=Public&state=North+Carolina&country=United+States&pass=tsia001&tp_regconfemail=1&sti=tsiawebsite&&hs_context=%7B%22hutk%22%3A%2245a8247daed03a542830da42194bed16%22%2C%22ipAddress%22%3A%2270.168.62.170%22%2C%22pageUrl%22%3A%22https%3A%5C%2F%5C%2Fwww.tsia.com%5C%2Fwebinars%5C%2FThe_State_of_Healthcare_Technology_20172018%5C%2F%22%2C%22pageName%22%3A%22The_State_of_Healthcare_Technology_20172018%5C%2F%22%7D
STATUS CODE: Return code is 204

HUBSPOT RESPONSE:
PAGE URL:https://www.tsia.com/webinars/The_State_of_Healthcare_Technology_20172018/