Error message · ✓ Reproduced with aria2 1.37.0
errorCode=22 The response status is not successful. status=403
The server refused the request. Usually the link needs your login cookies, a Referer, or has expired; some servers also refuse many connections.
FixSend the download from the browser with an extension that forwards cookies (see the browser guide), or pass them with --load-cookies or --header. Get a fresh link if it expired, and try -x 4.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=3 Resource not found
Nothing exists at that URL (exit code 3).
FixCheck the link for typos and whether the file has moved. Links copied from download pages are often temporary; copy a fresh one.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=22 The response status is not successful. status=429
The server limits how many requests you make. aria2 reports it with exit code 22.
FixUse fewer connections (-x 4), fewer simultaneous downloads (-j 1), and add --retry-wait=30.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=29 The response status is not successful. status=503
The server is overloaded or in maintenance (exit code 29). It can also mean it allows fewer connections than you opened.
FixRetry later with --max-tries=0 --retry-wait=30, and lower -x.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=24 Authorization failed.
The server wants a user name and password (exit code 24).
FixPass them with --http-user=USER --http-passwd=PASS (FTP: --ftp-user, --ftp-passwd). We confirmed this fixes the error.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=23 Too many redirects: count=20
The server sent aria2 around in a loop; aria2 gives up after 20 redirects (exit code 23).
FixThis usually means the site wants a login cookie and keeps redirecting to its login page. Forward cookies, or open the link in a browser to find the final URL.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=2 Timeout.
The server accepted the connection but did not answer in time (exit code 2).
FixRetry, raise --timeout and --connect-timeout for slow servers, and set --max-tries=0 to keep trying.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=1 Failed to establish connection, cause: Connection refused
Nothing is listening at that host and port, or a firewall rejects it. With a proxy set, the proxy itself may be down.
FixCheck the address and port. If you use --all-proxy or a proxy environment variable, check the proxy first.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=19 Name resolution for no-such-host.invalid failed:Domain name not found
aria2 could not look up the host name (exit code 19).
FixCheck the spelling and your DNS. If IPv6 is broken on your network, --disable-ipv6=true often helps; --async-dns=false makes aria2 use the system resolver.
Error message · ✓ Reproduced with aria2 1.37.0
errorCode=8 Invalid range header. Request: 1048576-2097151/2097152, Response: 0-2097151/2097152
The server ignores range requests and always sends the whole file. Multi-connection downloads fall back to one connection, and resuming is impossible (exit code 8 when a resume was required).
FixNothing to fix on your side: download it in one go with -x 1. In our test the download still completed with one connection.
The server answered with a web page (a login page or an expired-link notice) and a success status, so aria2 saved it.
FixOpen the saved file in a text editor to read it. Then send the download from the browser with cookies, or get a fresh link.
Usually one connection per server (aria2's default) or a min-split-size too large for the file.
FixUse -x 16 -s 16 -k 1M. Our speed guide shows measured results and the other bottlenecks.