Looks like the download server is down, or at least has major trouble (with the backend?). There are several forum discussions about errors like 504 Gateway Time-out 502 Bad Gateway https://downloads.openwrt.org/releases/