We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb5274 commit f7e4c2bCopy full SHA for f7e4c2b
1 file changed
src/webserver/error_with_status.rs
@@ -76,6 +76,7 @@ pub trait ActixErrorStatusExt<T> {
76
77
impl<T> ActixErrorStatusExt<T> for Result<T, actix_web::Error> {
78
fn with_actix_error_status(self) -> anyhow::Result<T> {
79
+ // Snapshot the HTTP status before converting to anyhow, which does not preserve Actix's response mapping for later inspection.
80
self.with_status_from(|e| e.as_response_error().status_code())
81
}
82
0 commit comments