Example:
throw new \ZfrRest\Http\Exception\Client\ConflictException("UniqueConstraintViolationException\n\n ss");
in controller causes:
< HTTP/1.1 200 OK
< Date: Mon, 28 Mar 2016 18:21:56 GMT
< Server: Apache/2.4.9 (Win32) PHP/5.5.12
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, PATCH, DELETE
< Access-Control-Allow-Headers: X-Accept-Charset,X-Accept,Content-Type,app,key
< X-Powered-By: PHP/5.5.12
< Content-Length: 5736
< Content-Type: application/json
<
/tr>
<
/tr>
| ( ! ) Warning: Header may
not contain more than a single header, new line detected in C:\git\4inspector\server\vendor\zendframework\zend-mvc\src\ResponseSender\AbstractResponseSender.ph
p on line 39 |
| Call Stack |
| # | Time | Memory | Function | Location |
| 1 | 0.0007 | 139640 | {main}( ) | ..\index.php:0 |
| 2 | 0.1431 | 5071928 | Zend\Mvc\Application->run( ) | ..\index.php:21 |
| 3 | 0.4733 | 12107616 | Zend\EventManager\EventManager->trigger( ) | .
.\Application.php:321 |
| 4 | 0.4733 | 12107688 | Zend\EventManager\EventManager->triggerListeners( ) | ..\EventManager.php:205 |
| 5 | 0.4735 | 12109040 | call_user_func:{C:\git\4inspector\server\vendor\zendframework\zend-eventmanager\src\EventManager.php:444}
( ) | ..\EventManager.php:444 |
| 6 | 0.4735 | 12109120 | Zend\Mvc\SendResponseListener->sendResponse( ) | ..\EventManager.php:444 |
| 7 | 0.4736 | 12109832 | Zend\EventManager\EventManager->trigger( ) | ..\SendResponseListener.php:94 |
| 8 | 0.4736 | 12109976 | Zend\EventManager\EventManager->triggerListeners( ) | ..\EventManager.php:205 |
| 9 | 0.4738 | 12111528 | call_user_func:{C:\git\4inspector\server\vendor\zendframework\zend-eventmanager\src\EventManager.php:444}
( ) | ..\EventManager.php:444 |
| 10 | 0.4738 | 12111592 | Zend\Mvc\ResponseSender\HttpResponseSender->__invoke( ) | ..\EventManager.php:444 |
| 11 | 0.4738 | 12111680 | Zend\Mvc\ResponseSender\AbstractResponseSender->sendHeaders( ) | ..\HttpResponseSender.php:46 |
| 12 | 0.4747 | 12166976 | header
( ) | ..\AbstractResponseS
ender.php:39 |
{"status_code":409,"message":"UniqueConstraintViolationException\n\n ss"}\* Connection #0 to host left intact
Example:
throw new \ZfrRest\Http\Exception\Client\ConflictException("UniqueConstraintViolationException\n\n ss");
in controller causes:
< HTTP/1.1 200 OK
< /tr> < /tr>< Date: Mon, 28 Mar 2016 18:21:56 GMT
< Server: Apache/2.4.9 (Win32) PHP/5.5.12
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, PATCH, DELETE
< Access-Control-Allow-Headers: X-Accept-Charset,X-Accept,Content-Type,app,key
< X-Powered-By: PHP/5.5.12
< Content-Length: 5736
< Content-Type: application/json