package com.prudas.app.dto;

import java.time.Instant;
import java.util.List;

/**
 * Uniform error envelope for every non-2xx response. Deliberately excludes
 * stack traces, exception class names, or SQL detail — those are logged
 * server-side (with a correlation id) but never sent to the client.
 */
public record ApiError(
        Instant timestamp,
        int status,
        String error,
        String message,
        String path,
        List<String> details
) {
}
