There are two operative eligibility standards.
Special Education – You have one of the 13 qualifying disabilities AND you cannot achieve a meaningful and measurable educational benefit from general education interventions and accommodations.
504 – Disability and educational impact. A more robust explanation could be found on FAQ’s 17-34 directly from the Feds. https://www2.ed.gov/about/offices/list/ocr/504faq.html