How to prevent queuing in asynchronous REST service
I want to prevent a request from queuing in a REST service based on some custom conditions. For example - if the policy_number tag is blank in the request json, I just want to throw error code and don't want to queue it.
I tried using when conditions. It throws the configured error code but still queues the request.