The What types of questions should I avoid asking? section of the Help Centre describes questions that you shouldn't ask on Stack Overflow as being "open-ended", "chatty" etc. It does not mention the new close reasons under off-topic that could be construed to be "programming related", i.e. "on-topic":
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See http://SSCCE.org for guidance.
and
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist.
Moving these close reasons out of the off-topic one is status-declined. Can the Help Centre be updated to include these two close reasons as being off-topic. I'm no wordsmith but (plagiarising heavily) something like the following might be a start:
Questions should be answerable and show effort; if you have a problem with your code please describe the problem and include code that reproduces it. If you're asking for code please include your solutions, why they didn't work and the expected results.
Robert mentions here that these are covered by the FAQ but this just says:
each community decides which specific topics are and are not allowed on their site.
This question does not appear to be about programming within the scope defined by the community. What's on- and off-topic is not always intuitive, so it may be necessary to reword the question to fit this site's scope after reviewing the community guidelines.
Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope.
and links back to https://stackoverflow.com/help/on-topic.