http_cache_reqwest/error.rs
1use std::fmt;
2
3/// Error type for request parsing failure
4#[derive(Debug, Default, Copy, Clone)]
5pub struct BadRequest;
6
7impl fmt::Display for BadRequest {
8 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9 f.pad("Request object is not cloneable. Are you passing a streaming body?")
10 }
11}
12
13impl std::error::Error for BadRequest {}