fix: Mark even more error codes as stale based on observed data

This commit is contained in:
timedout authored and Ellis Git committed 2026-08-20 00:57:11 +00:00
1 parent 768933b025
commit a916fdf09a
2 files changed
+13 -2

No files matched your search

+9 -1
View File
@@ -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.