<prompt> Human: hello allI currently live in an apartment building in Brooklynon Friday I was coming home from dinner and I was trying to enter my home. my roommate was home already and had the door locked.the lock was working just fine in the morning and afternoon, but when I came home at night 10PM the key would not open the lock. my roommate tried to open the doorlock from inside as well but he couldnt either.we both tried for about 5-10 minutes and eventually gave up.we called the landlordsuper but being that it was night time no one picked up. we eventually had to call a 247 locksmith who said that the deadbolt was stuckjammed and that there was really nothing he could do except drill through it and replace the lock.he ended up charging us 690 for removing the old lock, installing the new lock, and service charge and all this stuff. I have both a paper and online receipt we brought the issue up to our landlord who refuses to pay this amount and said he will only cover 200 of the charge leaving myself and my roommate with the other 500I dont think we should be responsible for any of it seeing as how we didnt do anything to break the lock wear and tear. the landlord kept going on and on about how hes gone above and beyond for us he hasnt and how hes not sure what we or someone else did to the lock to break it, etc etc etcI would like to not have to pay for any of this, does anyone have any resources website specifically for NYCBrooklyn landlord-tenant laws regarding this matter? has anyone had this happen to them?in addition to the keys, the inside of the apartment drips on our windowsill area on the inside when it rains real bad outside. ive told the super about this issue texted him with photos and he just never responded.I want to take my landlord to small claims court, is this a bad idea? any help would be appreciated.  <response>: A few things you can look up: Warranty of habitability, warranty of security, and repair and deduct.Basically, if the unit is not habitable, you have the right in NY to make it habitable and deduct the amount needed to do so from your rent. However, typically you must first notify the landlord of the problem and give them a chance to resolve it; obviously this was an emergency situation, so that shouldnt apply.The issue you may run into is the amount you paid. While a locksmith at night can be expensive, 700 is pretty excessive... like you may have gotten pretty scammed expensive. You should call some other locksmiths in your area and get a quote on drill replace for a night call. If theyre comparable, then present them to the landlord as well and point them to the applicable repair deduct statutes. If the other quotes are significantly lower, you can either pursue reclaiming money from the locksmith, or you can take it as a learning experience and offer to split a more reasonable amount an average of the other quotes with your landlord. 