Does cardano-cli throw an error when mempool is full and you try to submit a transaction?

As I’ve observed so far, as long as there are no inherent problems in a transaction, cardano-cli only returns a confirmation message after successfully submitting a transaction.

But I haven’t tried submitting to my local node when its mempool is full. So I’m wondering if there’s a way to catch this problem/error if/when it happens; so that we can probably manage a queue outside of, and before cardano-cli.

The official docs don’t seem to mention anything about this. …We need it for the minting backend of an NFT project.