integrate some std io error kinds with our status code abstraction

associate rocksdb error kinds with std io error kinds

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2025-01-01 23:28:01 -05:00
1 parent 7c8eeaf4ea
commit b56e480b3c
3 files changed
+39 -2

No files matched your search

+1
View File
@@ -178,6 +178,7 @@ impl Error {
| Self::FeatureDisabled(..) => response::bad_request_code(&self.kind()),
| Self::Reqwest(error) => error.status().unwrap_or(StatusCode::INTERNAL_SERVER_ERROR),
| Self::Conflict(_) => StatusCode::CONFLICT,
| Self::Io(error) => response::io_error_code(error.kind()),
| _ => StatusCode::INTERNAL_SERVER_ERROR,
}
}