package com.tt.honeyDue.models

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
 * Error response model that handles the backend's error format.
 * The backend returns: {"error": "message"}
 * All fields except 'error' are optional for backwards compatibility.
 */
@Serializable
data class ErrorResponse(
    val error: String,
    val detail: String? = null,
    @SerialName("status_code") val statusCode: Int? = null,
    val errors: Map<String, List<String>>? = null
)
