It is still unclear to me what is the main problem that you wish to expose here, but let's go piece by piece.
This mostly relates to how some users blatantly break rules, as in posting a question and expecting the whole code to be given to them (usually a rep 1 user and others who want their homework solved.
That is not considered rule breaking. While there is some precedence on Meta which calls out the behavior of asking questions of that sort as inappropriate (sometimes even claimed to be downright rude), this attitude by itself is not considered a code of conduct violation. It only becomes a problem if the user makes it a pattern of making low quality questions while dismissing warnings to take better consideration for the platform. More often than not, such users only end up with a question ban, although in rare cases a suspension may be issued.
It may happen that sometimes people will erroneously point towards the code of conduct on a low quality question. In that case they were better off pointing at How to Ask.
If certain other users, who wish to help others (so pretty much the whole community), are a bit fed up and give a rash/funny response, how frowned upon is that, if that "rash response" is fully in accordance with the rules of SO?
This is utterly incoherent. The code of conduct explicitly expects you to be patient and kind when giving and receiving feedback. If you cannot be patient and kind in your comments, you are better off not leaving any comments in the first place.
Granted, some comments will end up being more or less blunt and to the point than others. Each person has their own way with words. But ultimately, an international communication ground needs to set common ground, and this site favors less noise (with less chances of offending someone) over more communication (with greater chances of offending someone).
Examples being commenting are "Google it" or "Good luck with that task" and stuff like that. I learned the hard way that asking a question on here is a privilege and not a right. And it should be used as a last resort.
"Google it" and "Good luck with that task" are not constructive. You should not post them, and any comment of this sort that you find should be flagged for removal. Note that there are even automatic mechanisms in place to prevent people from posting lmgtfw links, for the same reason. The platform intends to be the host of the content, not the place that tells visitors to Google, nor a source of links which may die with time.
I would like to hear thoughts as to the limits of assisting someone, and what is classed as a bare minimum attempt when a user wants help, and when they are just begging for a solution.
Any assessment of whether to answer a question must not be based on the author of the post, but on the overall quality of the question itself. And that is a direct consequence of the effort laid on the question. Remember that questions and answers are not just for you or the asker. They ought to be a useful resource for future visitors, so any consideration of merit to the asker is not applicable.
Of course, some users are so starved for reputation that they will answer those extremely poor question in order to get some reputation.
That is not very accurate. There are multiple other reasons for answering low quality questions which do not amount to reputation. There are users of the site with very large amounts of reputation who continue to prefer answering questions instead of identifying suitable duplicate targets.
In any case, as also explained in the question linked above, the course of action is still to evaluate the answer in that context. If you find that such an answer is not useful, please downvote! Note how we don't have to make this about the askers nor the answerers.
The same question: What kind of attitude is accepted for such (although not an offence) but still bad practice?
No poor attitude is acceptable. The site's policies make no exceptions to poor conduct.
Moreover, if you believe that the code of conduct hinders moderations, and that being harsher to our users, berating and shaming them for posting low quality content is the way to combat the incoming flood of crap, that says more about you than it says about the condition of the site. Don't be that person.