exception/catch/gerar error php
header('HTTP/1.1 500 Internal Server');
header('Content-Type: application/json; charset=UTF-8');
die(json_encode(array('message' => 'Erro de validação de campos!', 'code' => 1337)));
$this->_helper->viewRenderer->setNoRender(true);