Fedora has stopped building the 4.0 version of webkit2gtk in preparation for the release of Fedora 40 in a few months. Debian and Ubuntu are also working to remove webkit2gtk 4.0 soon.
webkit2gtk 4.1 is the same as 4.0 except that 4.1 uses libsoup3 and 4.0 uses libsoup2.4.
Fedora has stopped building the 4.0 version of webkit2gtk in preparation for the release of Fedora 40 in a few months. Debian and Ubuntu are also working to remove webkit2gtk 4.0 soon.
webkit2gtk 4.1 is the same as 4.0 except that 4.1 uses libsoup3 and 4.0 uses libsoup2.4.
There is some documentation and many examples of how to port to libsoup3 at https://gitlab.gnome.org/GNOME/libsoup/-/issues/218