Fix status code for failed preconditions

This commit is contained in:
Lennart
2026-01-19 15:37:41 +01:00
parent 92a3418f8e
commit df3143cd4c
4 changed files with 13 additions and 16 deletions

View File

@@ -53,9 +53,7 @@ impl IntoResponse for Error {
fn into_response(self) -> axum::response::Response {
if matches!(
self.status_code(),
StatusCode::INTERNAL_SERVER_ERROR
| StatusCode::PRECONDITION_FAILED
| StatusCode::CONFLICT
StatusCode::INTERNAL_SERVER_ERROR | StatusCode::CONFLICT
) {
error!("{self}");
}