bfile/filed/src/web/rejection.rs

11 lines
236 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),
2023-10-01 10:40:37 +02:00
FromUtf8Error(FromUtf8Error),
StringError(String)
2023-10-01 04:05:08 +02:00
}
impl warp::reject::Reject for HttpReject {}