You can sue a landlord in small claims court over unsafe living conditions or for violating your state's implied warranty of habitability. Warranty of habitability means that regardless of any opposing lease term, your landlord is required to keep your unit in a habitable condition at all times.