If you get an error like this when attempting to directly access a recorded file, by pasting its URL into the browser window, the cause is likely that slash arguments has been disabled on the Moodle server.
This Moodle article described it.
https://docs.moodle.org/31/en/Using_slash_arguments
You need to enable slash arguments in:
Site Administration -> Server -> HTTP