Subject: | Handle internal LWP client errors (check X-Died header) |
LWP will sometimes encounter a temporary error (ex. read timeout [1]), and return a success code, but set the X-Died header. There have been numerous bug reports [2] over the years with no resolution in site, so the best practice is now to check for success (or failure) and the existence of the X-Died header. Many of these types of errors are of the temporary nature, so it could be handled internally by this module.
[1] https://rt.cpan.org/Public/Bug/Display.html?id=101990
[2] https://github.com/libwww-perl/libwww-perl/labels/X-Died