please use https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Response.php#L73