protected function forceEmptyResponseOnHttpNoContent(
        SymfonyResponse $response
    ) {
        if ($response->getStatusCode() === Response::HTTP_NO_CONTENT) {
            $response->setContent(null);
            $response->headers->remove('Content-Type');
        }
    }