The second one does not really violate moral or ethical codes, IMO? The first one I know some people might be able to justify, but I brought it up with my girlfriend jokingly, she said I was a dead man if I even thought about it, and that was that :)
It just becomes a slippery slope though, because rules like this are meant to push you towards doing things you don't really want to. Once you start making exceptions, you will find reasons to say no to everything.
Like, I made myself a rule to not buy anything on the first day I see it. All well and good, but yesterday I bought a guitar for about $1500. I had technically seen it in the store before, but this was a different one of the same model, with a much nicer finish, and felt better to play.
Seems like an innocuous exception, but internally I know that I'm going to start impulse spending again. At least now I can (better) afford random bouts of stupidity!
"Hey, I need to dispose of [toxic waste¦a body¦evidence], can you help out?" "Sorry, have to wash my hair."