import type { AxiosRequestConfig } from 'axios';

/**
 * Partial port from `fe0/src/lib/applicationReviewApi.ts` — only the data-layer-referenced
 * config is brought across. The rest of that module (review-list / ApplicationItem helpers)
 * depends on mock-data + review UI and belongs to a later slice.
 */

/** Reject 4xx/5xx so callers do not treat FastAPI `{ detail }` JSON as a successful entity body. */
export const axiosSuccessStatusOnly: AxiosRequestConfig = {
  validateStatus: (status: number) => status >= 200 && status < 300,
};
