mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
fix: Mark even more error codes as stale based on observed data
This commit is contained in:
1 parent
768933b025
commit
a916fdf09a
2 files changed
+13
-2
No files matched your search
@@ -184,7 +184,15 @@ impl Service {
|
||||
}
|
||||
}
|
||||
|
||||
error.status_code() == StatusCode::MISDIRECTED_REQUEST
|
||||
match error.status_code() {
|
||||
// Some special servers account for this specifically
|
||||
| StatusCode::MISDIRECTED_REQUEST
|
||||
// Common error codes observed for misdirected requests
|
||||
// | StatusCode::NOT_FOUND This one can be encountered naturally
|
||||
| StatusCode::METHOD_NOT_ALLOWED
|
||||
| StatusCode::IM_A_TEAPOT => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns a clone of the internal remote health tracking map.
|
||||
|
||||
Reference in new issue
Block a user