Add pull subscription response http code as attribute
We know from https://cloud.google.com/pubsub/docs/push),that when Push-subscriber ie. a REST-service returns http codes 102, 200, 201, 202 or 204, then messages are acknowledged.
No response (after timeout) or any other http return code will retry sending message.
It would be really useful, if the service would add/set this http error code (or no response info) in the message as attribute.
The error analysing would be much easier.
This could be further used for automatic error recovery. For example, all unsent message could end up in on dead-letter queue and publisher(s) could read this dead letter topi topic and send the messages again selectively: for example send again messages, which returned http-code 5xx and 425 ("Too Early"), but do NOT Resend the rest of 4xx messages