guix/gnu/installer
Rutherther 84a018b356
installer: network: Check response code to assess substitute availability.
This is to accomodate following situation:
- The proxy is up
- The substitute server is down

When that happens, 5xx is returned from the proxy, typically either Bad
Gateway or Gateway Timeout. This implies the substitute server is down.

Still, for checking if the user is online, we do not check the response code.
If there is a response, even 4xx, 5xx, it still means the user is online.

* gnu/installer/newt/network.scm
(url-alive?): Add optional argument to to check the response code.
(common-urls-alive?): Add the same argument, passing it to url-alive?
(check-substitute-availability): Assume offline when non-successful http code
returned.

Follow up of 9ea2174ba8.
Change-Id: I52ae8a49407009dd76ad5da3925355770bc25d0c

Change-Id: I99a77cb7332198bae84f28a00a6cc0409d5bf3b9
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Merges: #5217
2026-01-14 09:16:50 +01:00
..
aux-files
newt installer: network: Check response code to assess substitute availability. 2026-01-14 09:16:50 +01:00
connman.scm
dump.scm
final.scm installer: Add Hurd x86_64 as an option. 2026-01-14 09:16:49 +01:00
hardware.scm
hostname.scm
kernel.scm installer: Add Hurd x86_64 as an option. 2026-01-14 09:16:49 +01:00
keymap.scm
locale.scm
newt.scm
parted.scm
proxy.scm
record.scm
services.scm installer: Add Sway as an option in the Desktop environment page. 2025-11-04 17:49:29 +01:00
steps.scm
substitutes.scm
tests.scm
timezone.scm
user.scm
utils.scm