I had assumed that they say 'no cooked food' because even non-meat food scraps might have bits of meat/gravy/meaty sauces clinging to them. So by my logic, the pasta might be OK so long as you can guaruntee that there's no meat or fish stuff attached to it. I could be quite wrong about this though.
pasta will rot fine, so would any cooked food, tis the rats that are the issue, but as a one off should be OK. I reckon rats prefer cooked food because it's 'easier' (like we prefer our food cooked too). We are quite strict about this rule as have had plenty of unpleasant ratty experiences, however none compost related. Every so often I tip a bucket of water into the bin to discourage anything from taking up residence. You know what they say, you're never more than 10 feet from a rat. Sweet dreams.
Rats will eat anything and everything. There are some types of wormery that will take food waste, but these are a special construction not a compost bin or heap. I am lucky in that the local council are now taking raw and cooked food waste in our garden waste wheelie bin. It's hard to get DH to remember though. I keep having to fish stuff out of the kitchen bin that he's put there!
The council here have a special 'compost farm' where all the waste gets heated to incredibly high temperatures, so sterilizing it all. No domestic composting could ever reach that temp. They sell the finished compost in garden centres!
Non-meat food waste really isn't a problem in a compost bin (with a rat-proof lid). Meaty stuff goes into the dog, bread/fat onto bird table, small amounts of baked beans/pasta/rice into compost bin. If you are regularly binning large quantities of pasta (or anything else)then you're cooking too much which is unethical