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