I'm trying to create a new custom Activity on a lead using the REST API and PHP:
[errors] => Array
 => stdClass Object
[code] => 612
[message] => Invalid Content Type
Post the request payload, not just the error (and try to use a monospace font for sanity!). Code 612 is straightforward: you need C-T: application/json.