diff --git a/server/src/error.rs b/server/src/error.rs index f74faf7..9e90bef 100644 --- a/server/src/error.rs +++ b/server/src/error.rs @@ -24,12 +24,6 @@ pub enum Error { #[error("hex error: {:?}", 0)] Hex(#[from] hex::FromHexError), - #[error("could not parse ttl")] - ParseTtl, - - #[error("encryption error")] - ChaCha, - #[error("oidc redirect")] Oidc(Response), @@ -54,7 +48,6 @@ impl IntoResponse for Error { Self::DataFileExists => { (StatusCode::CONFLICT, "bin already contains data\n").into_response() } - Self::ParseTtl => (StatusCode::BAD_REQUEST, "invalid ttl class\n").into_response(), Self::Oidc(response) => response.into_response(), Self::InvalidMultipart => { (StatusCode::BAD_REQUEST, "invalid multipart data").into_response()