lago_types/models/common.rs
1use serde::{Deserialize, Serialize};
2
3/// Represents an error response from the API.
4///
5/// This struct contains the standard error information returned by the API
6/// when a request fails, including the HTTP status code, error type, and
7/// a descriptive message.
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct ApiError {
10 pub status: u16,
11 pub error: String,
12 pub message: String,
13}