use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum ExtractError {
#[error("no shared state registered for {0}")]
MissingState(&'static str),
#[error("failed to decode payload: {0}")]
InvalidPayload(#[source] bincode::error::DecodeError),
#[error("no streaming body available for this request")]
MissingBodyStream,
}