I have a simple piece of code that works well on Apache, but does not return any body when using Nginx. It is a piece of code taken straight (mostly) from the official Phalcon documentation.
$this->response->setStatusCode(409, 'Conflict') ->setContentType('application/json', 'UTF-8') ->setJsonContent(array('success' => false, 'error' => 'blabla')) ->send(); die();
Why is this happening? Is this a bug in Phalcon, or should we modify something in our Nginx server for this to work properly?
Thanks in advance!