private function createRedirectResponse($fileID, $code)
    {
        $response = new HTTPResponse(null, $code);
        /** @var PublicAdapter $adapter */
        $adapter = $this->getPublicFilesystem()->getAdapter();
        $response->addHeader('Location', $adapter->getPublicUrl($fileID));
        return $response;
    }