bfile/filed/src/web/rejection.rs

10 lines
211 B
Rust
Raw Normal View History

2023-10-01 06:44:19 +02:00
use std::string::FromUtf8Error;
2023-10-01 04:05:08 +02:00
#[derive(Debug)]
pub enum HttpReject {
WarpError(warp::Error),
2023-10-01 06:44:19 +02:00
AskamaError(askama::Error),
FromUtf8Error(FromUtf8Error)
2023-10-01 04:05:08 +02:00
}
impl warp::reject::Reject for HttpReject {}