#[derive(Debug, thiserror::Error)]
pub enum ApiError {
    #[error("network error: {0}")]
    Network(#[from] reqwest::Error),
    #[error("notion api error {status} ({code}): {message}")]
    Api { status: u16, code: String, message: String },
    #[error("retries exhausted for {0}")]
    RetriesExhausted(String),
}
