package br.gov.sigefp.common.api.dto;

import lombok.Builder;
import lombok.Getter;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Standard DTO for API error responses.
 */
@Getter
@Builder
public class ErrorResponse {
    private String timestamp;
    private int status;
    private String error;
    private String code;
    private String message;
    private String path;
    private List<ValidationError> errors;

    @Getter
    @Builder
    public static class ValidationError {
        private String field;
        private String message;
    }
}
