<human>: So I just got back to my apartment building, and I see about 7-10 cops running up the stairs to my apartment building's door. They tried to get in but the officer entering the code could not enter the right code; so they could not get into the building (the door uses a magnetized lock). I get out of the car and ask "Uhh, what the hell, I live here can I get into the building?" An officer that looks to be the one leading this raid hears the guy trying to open the door say, "I can't get in, it's not working." That said officer then looks at me and says, "Do you have the code?" I replied, "Yeah." He told me to give it to him, so I asked if he had a warrant. He told me that they did have one, and then again asked me for the code. I then asked if I could see it, because for some damn reason I felt I shouldn't let them inside the building unless they have the right to search this persons apartment. Then I hear a guy say, "Just give us the code!" At this point I say to myself fuck it and go to let them in. But then I again ask for a warrant and the lead officer says, "Look dude, we have a warrant, ok?" So I just let them in for fear of arrest or whatever the repercussions would be for refusing.

My question is, did I have the right to see said warrant? Also, do I have the right to refuse them entry, because they were about to bust the door down anyways.

Give me a shortened version of the text
<bot>: Police raid in my building, I asked for the warrant officers would not let me see said warrant. Do I have a right to see it and do I have the right to refuse entry for them?