However, with the php client, it looks like this functionality is not available. I can't see if it is available on the HTTP rest client as yet, I saw this https://stackoverflow.com/a/20533304/56672 which indicated it was planned as a feature in 2013
If someone can point me in the direction of the http rest docs I can look at creating a PR.
I realise that after enough rejections a message will end up on the dead letter queue anyway, but it would be good if I can give a reason.
With .net you can send a message to the dead letter queue with an explicit reason https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.queueclient.deadletterasync?view=azure-dotnet
However, with the php client, it looks like this functionality is not available. I can't see if it is available on the HTTP rest client as yet, I saw this https://stackoverflow.com/a/20533304/56672 which indicated it was planned as a feature in 2013
If someone can point me in the direction of the http rest docs I can look at creating a PR.
I realise that after enough rejections a message will end up on the dead letter queue anyway, but it would be good if I can give a reason.