camaraproject / Commonalities

Repository to describe, develop, document and test the common guidelines and assets for CAMARA APIs
Apache License 2.0
9 stars 24 forks source link

How to inform API consumer about unprocessable subscription request in Async mode #243

Open bigludo7 opened 4 days ago

bigludo7 commented 4 days ago

Problem description In our subscription model we offer possibility for server to handle it synchronously or asynchronously.

Suppose we have a subscription request that the server is not able to handle (the monitoring area is not within operator area, the reachability status could ne follow this specific number, etc...) and the subscription server handles it in async mode.

How to inform the subscription requester that the request in not processable when server manages it in asynchronously ?

(in sync mode we do not have issue as we send back a 4xx error)

Possible evolution

Alternative solution

Additional context cc: @PedroDiez & @shilpa-padgaonkar @akoshunyadi