for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByJG\RestServer\Whoops;
use ByJG\RestServer\Exception\ClientShowException;
trait WhoopsHeaderTrait
{
public function setProperHeader(\Exception $exception)
if ($exception instanceof ClientShowException)
$exception->handleHeader();
}