I mapped custom exception in 'zfr_rest_global.php' file
'exception_map' => [
'Doctrine\DBAL\Exception\UniqueConstraintViolationException' => 'ZfrRest\Http\Exception\Client\ConflictException'
],
Then a warning is issued by PHP and return code 200. PHP version 5.5.12, apache on windows.
( ! ) 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
I mapped custom exception in 'zfr_rest_global.php' file 'exception_map' => [ 'Doctrine\DBAL\Exception\UniqueConstraintViolationException' => 'ZfrRest\Http\Exception\Client\ConflictException' ], Then a warning is issued by PHP and return code 200. PHP version 5.5.12, apache on windows.