You can use the
Location HTTP header for this. You can set the actual path as the location header and give back the response. It is then the responsibility of the client to redirect to that URL and download.
If you want to return the contents yourself, set
application/octet-stream and return the file contents. I assume your rest service URL would be something like