Open maxl2287 opened 2 months ago
It seems, we have a similar issue against issue-138
hmm..mm @maxl2287 why wouldn't the API return a temporary error if it is unable to determine the connectivity status? cc: @NoelWirzius @gmuratk
There could be some potential use-cases for "Unknown" status:
Tricky question... I checked on Device location...
I tend to prefer 422 for our API as easier for my perspective to differentiate "business" valuable response.
Thanks @bigludo7 for more insight on this and I would also prefer 422 in this case where it explicitly indicates a failure to process the request due to some unknown network issue.
I also tend to agree with the 422. It should not be a successful response and we should not charge for something that is not client's fault.
Problem description When the service tries to call the network to get some information, but the network cannot deliver either information about DATA nor SMS, then we cannot respond with "NOT_CONNECTED", but we need to communicate to the consumer that the network was not able to deliver a current status of connection.
Possible evolution Add a new connectivity-status
UNKNOWN