class RecruitmentError(Exception):
    """An error the caller should see as an HTTP response. The router turns it
    into an HTTPException; the service layer stays free of FastAPI."""

    def __init__(self, status_code: int, detail: str):
        self.status_code = status_code
        self.detail = detail
        super().__init__(detail)
