Dodgy landlord

I was two weeks late with my rent and the landlord locked me out of my apartment. Is there anything I can do?

Is this legal?

It is completely against the law to lock you out of your apartment.