diff --git a/src/allmydata/web/common.py b/src/allmydata/web/common.py index 13385c5..1599b1e 100644 --- a/src/allmydata/web/common.py +++ b/src/allmydata/web/common.py @@ -220,7 +220,7 @@ def humanize_failure(f): "corruption. You should perform a filecheck on " "this object to learn more.\n\nThe full error message is:\n" "%s") % str(f.value) - return (t, http.GONE) + return (t, http.NOT_FOUND) if f.check(NoSharesError): t = ("NoSharesError: no shares could be found. " "Zero shares usually indicates a corrupt URI, or that " @@ -228,7 +228,7 @@ def humanize_failure(f): "severe corruption. You should perform a filecheck on " "this object to learn more.\n\nThe full error message is:\n" "%s") % str(f.value) - return (t, http.GONE) + return (t, http.NOT_FOUND) if f.check(UnrecoverableFileError): t = ("UnrecoverableFileError: the directory (or mutable file) could " "not be retrieved, because there were insufficient good shares. " @@ -237,7 +237,7 @@ def humanize_failure(f): "that shares have been lost due to server departure, hard drive " "failure, or disk corruption. You should perform a filecheck on " "this object to learn more.") - return (t, http.GONE) + return (t, http.NOT_FOUND) if f.check(MustNotBeUnknownRWError): quoted_name = quote_output(f.value.args[1], encoding="utf-8") immutable = f.value.args[2]