I noticed this option is not documented in the help. Here's a patch for it.
diff --git a/src/main.c b/src/main.c
index 5430e7ce..46824efd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -636,6 +636,8 @@ Download:\n"),
-t, --tries=NUMBER set number of retries to NUMBER (0
unlimits)\n"),
N_("\
--retry-connrefused retry even if connection is refused\n"),
+ N_("\
+ --retry-on-http-error=ERRORS comma-separated list of HTTP errors to
retry\n"),
N_("\
-O, --output-document=FILE write documents to FILE\n"),
N_("\