it would be classified as a 'stillbirth' as the baby is viable outside the womb at 24wks most of the time. so if this happens, you will need to make funeral arrangements and burial/cremation arrangements etc.
I lost my son at 17wks. gave birth to him and buried him in my front yard, but it was never 'registered' because I wasn't over 24 wks.
my friend lost her baby boy at 33wks :(
Don't think about it, I'm always stressing out and I'm 32 weeks, but I try to think about something else