Don't ask me "why". Because I can.
Of course, there are better solutions to serve static, but Bash also can do it.
Expecting you have such binaries available:
bash
(tested onGNU bash, versiya 5.1.16(1)-release (x86_64-pc-linux-gnu)
)nc
(any netcat able to donc -l -k -p {PORT}
)find
(tested onfind (GNU findutils) 4.9.0
)stat
(tested onstat (GNU coreutils) 9.1
)file
(tested onfile-5.43
)