1use haste_fhir_operation_error::derive::OperationOutcomeError;
6
7#[derive(OperationOutcomeError, Debug)]
8pub enum ServerError {
9 #[fatal(code = "exception", diagnostic = "Failed to serialize the response.")]
11 Serialize(#[from] serde_json::Error),
12 #[fatal(code = "exception", diagnostic = "Invalid API URL configured.")]
14 InvalidApiUrl(#[from] url::ParseError),
15 #[fatal(code = "exception", diagnostic = "Invalid API URL configured.")]
17 InvalidApiUri(#[from] axum::http::uri::InvalidUri),
18}