Welcome to the community, @Eduardo1338!
It's a host responsibility!
An overflowing toilet is caused by one of three things: a clogged or blocked drain that doesn't allow for a proper flush, an improperly adjusted float that allows the tank to overfill or a blocked vent pipe that replaces the air in the pipe after each flush.
Floor damage because of toilet overflow, definitely is the host responsibility.
In case, happen in the apartment, then is the building management responsible.
By the way, you do not need responsible for anything, because the host should be claimed from the housing insurance.
The insurance company is necessary to investigate.