diff --git a/src/util/error.rs b/src/util/error.rs index 61e9470..95f8f4b 100644 --- a/src/util/error.rs +++ b/src/util/error.rs @@ -242,9 +242,8 @@ impl dioxus_fullstack::AsStatusCode for Error { ErrorType::Database(msg) if *msg == (diesel::result::Error::NotFound).to_string() => { StatusCode::NOT_FOUND } - ErrorType::Database(_) => StatusCode::INTERNAL_SERVER_ERROR, - ErrorType::Error(_) => StatusCode::INTERNAL_SERVER_ERROR, ErrorType::ServerFnError(e) => e.as_status_code(), + _ => StatusCode::INTERNAL_SERVER_ERROR, } } }