use thiserror::Error;
#[derive(Debug, Error)]
pub enum ApplicationsError {
#[error("Application not found: {name}")]
ApplicationNotFound { name: String },
#[error("Function call not found: {id}")]
FunctionCallNotFound { id: String },
#[error("HTTP request failed: {0}")]
Http(#[from] reqwest::Error),
#[error("Invalid request data: {0}")]
InvalidRequest(String),
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
#[error("Request not found: {id}")]
RequestNotFound { id: String },
}