product_os_http_body/
error.rs

1use thiserror::Error;
2use alloc::string::String;
3
4#[derive(Debug, Error)]
5pub enum BodyError {
6    #[error("network error")]
7    Network(String),
8    #[error("io error")]
9    Io(#[from] std::io::Error),
10    #[error("unable to convert to bytes")]
11    DecodeToBytes(String),
12    #[error("unable to decode body")]
13    Decode,
14    #[error("unknown error")]
15    Unknown,
16}