What the Housing Act says:
UNDER the Housing (Wales) Act, a person is homeless:
If they have no accommodation in the UK or elsewhere which they have a legal right to occupy
If they have accommodation but cannot secure entry to it
A person won’t be treated as having accommodation unless it would be reasonable for that person to continue to occupy it
A person is threatened with homelessness if it is likely they will become homeless within 56 days
Where a person lacks accommodation or their tenure is not secure, and this can include moving frequently between relatives and friends, living somewhere overcrowded, leaving hospital, the Armed Forces or prison without somewhere to go, living in night shelters, and sleeping rough.