Get your taxes done using TurboTax

You should be able to claim the child as a dependent under the Qualifying Child rules if the child was a full time student for any portion of 5 months during the year and also meets the other requirements under the rules.  Then you should be able to have Head of Household filing status if you are Single or considered unmarried by not living with your spouse at any time in the last six months of the year and meet the other requirements for Head of Household.

To be a Qualifying Child -

1. The child must be your son, daughter, stepchild, foster child, brother, sister, half brother, half sister, stepbrother, stepsister, or a descendant of any of them.

2. The child must be (a) under age 19 at the end of the year, (b) under age 24 at the end of the year and a full-time student or (c) any age and permanently and totally disabled.

3. The child must have lived with you for more than half of the year. Temporary absences while away at college are considered living with you.

4. The child must not have provided more than half of his or her own support for the year.

5. If the child meets the rules to be a qualifying child of more than one person, you must be the person entitled to claim the child as a qualifying child. 

6. The child must be a U.S. citizen or U.S., Canada or Mexico resident for some portion of the year.

7. The child must be younger than you unless disabled.

See this TurboTax support FAQ for Head of Household - https://ttlc.intuit.com/questions/1894553-do-i-qualify-for-head-of-household