These two off-topic close reasons don't seem like they describe off-topic questions.
Questions concerning problems with code you've written must describe the specific problem and include valid code to reproduce it. See SSCCE.org for guidance.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Both of them sound like that the question was on-topic, but lacking some crucial piece of information. Specifically if a question is "concerning problems with code you've written" it sounds more like it's exactly on-topic.
Compared to other standard close reasons, I don't see why the above close reasons describe off-topic questions any more than these:
unclear what you're asking
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking.too broad
There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.
Is the off-topic list used for site-specific close reasons only because it's the only list that can be customized, whether or not the close reason actually describes an off-topic question? Wouldn't it be clearer if the main list could be customized and these close reasons put there?