Restore compatibility with libcurl from focal
Commit ca214453 introduced error codes from libcurl 7.81.0 and 7.69.0 breaking focal which only has libcurl 7.68.0.
Commit ca214453 introduced error codes from libcurl 7.81.0 and 7.69.0 breaking focal which only has libcurl 7.68.0.