use foctet_core::BodyEnvelopeError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum HttpError {
#[error("missing content-type header")]
MissingContentType,
#[error("invalid content-type: expected application/foctet")]
InvalidContentType,
#[error("failed to seal HTTP body")]
SealFailed(#[source] BodyEnvelopeError),
#[error("failed to open HTTP body")]
OpenFailed(#[source] BodyEnvelopeError),
}