#[non_exhaustive]
#[derive(Debug, thiserror::Error)]
pub enum ServiceError {
#[error("serialization error: {0}")]
Serialization(String),
#[error("payload too large: {0}")]
PayloadTooLarge(String),
#[error("invalid status: {0} (expected one of: ok, not_found, error)")]
InvalidStatus(String),
#[error("{0}")]
Other(String),
}