I just want to know if there is any way to retry a download if the server sends error code 503. Some servers sending 503 error messages as long as I am queued and have to wait until I'm allowed to start the download. Thus I need aria2 to retry every x seconds until the download is complete.
Unfortunately, there is no standard way to retry download after some sleep. There is a plan to add this, but current version does not have so it does not help. The workaround is that check exit status of aria2 and if it is not successful, run aria2c again.