Tinysrv is small single process webserver with support for TLS that responds with empty content of proper content-type if requested file is not found.
Start tinysrv in foreground on port 8080.
./tinysrv -f -p 8080
apt-get update
apt-get install -y gcc libc-dev libssl-dev make