In the example below, the first command used an invalid exchange and the second an invalid routing key. The former shows 404 error, and the latter a Not routed error.
➜ rabbitmq docker exec -it rabbitmq rabbitmqadmin publish message --routing-key=events.hi --payload=hiya --exchange=events1
API responded with a 404 Not Found
➜ rabbitmq docker exec -it rabbitmq rabbitmqadmin publish message --routing-key=events.hola --payload=hiya --exchange=events
Message published but NOT routed