use thiserror::Error;
#[derive(Debug, Error)]
pub enum ServiceError {
#[error("bad request: {0}")]
BadRequest(String),
#[error("not found: {0}")]
NotFound(String),
#[error("unauthorized: {0}")]
Unauthorized(String),
#[error("internal error: {0}")]
Internal(String),
}