Add test for uploading invalid calendar object and fix precondition

This commit is contained in:
Lennart
2026-01-19 13:40:54 +01:00
parent 303f9aff68
commit 0eef4ffabf
5 changed files with 90 additions and 5 deletions

View File

@@ -79,6 +79,9 @@ impl Error {
impl IntoResponse for Error {
fn into_response(self) -> axum::response::Response {
if let Self::PreconditionFailed(precondition) = self {
return precondition.into_response();
}
if matches!(
self.status_code(),
StatusCode::INTERNAL_SERVER_ERROR | StatusCode::PRECONDITION_FAILED