Skip to main content

pacenotes_shared/
api_error.rs

1/// The body of every non-2xx response.
2#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
3pub struct ApiError {
4    /// Machine-readable: `unauthorized`, `not_found`, `rate_limited`, …
5    pub code: String,
6    /// Safe to show to the user as-is.
7    pub message: String,
8}