Dingo\Api\Exception\Handler::getHeaders PHP Method

getHeaders() protected method

Get the headers from the exception.
protected getHeaders ( Exception $exception ) : array
$exception Exception
return array
    protected function getHeaders(Exception $exception)
    {
        return $exception instanceof HttpExceptionInterface ? $exception->getHeaders() : [];
    }