Wget errors out with 127 when run as part of GitHub Action

In my GitHub action I’m downloading dependencies such as SDKs and tools.
To do this, I have wget commands. They are very frequently (99%) of the time, failing with the following error:

Error: Process completed with exit code 127.

I’m very surprised at the weird error. Is the Action just not logging the real http or network error?