package api // ErrorResponse represents an error response type ErrorResponse struct { Error ErrorDetail `json:"error"` } // ErrorDetail represents error details type ErrorDetail struct { Message string `json:"message"` Type string `json:"type"` Code string `json:"code,omitempty"` }