exists($filePath)) { return new Response('File not found', Response::HTTP_NOT_FOUND); } return new Response(file_get_contents($filePath), Response::HTTP_OK); } }